📄 state_practice.mxml
字号:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:states>
<mx:State name="contact">
<mx:AddChild position="lastChild">
<mx:Panel x="305" y="36" width="250" height="200" layout="absolute" title="Send Us a Question">
<mx:Label x="10" y="10" text="Label"/>
<mx:TextInput x="53" y="8"/>
<mx:Label x="10" y="47" text="Label"/>
<mx:TextInput x="53" y="45"/>
<mx:Button x="66" y="118" label="Button" click="currentState ="thankYou"" id="button1"/>
</mx:Panel>
</mx:AddChild>
<mx:RemoveChild target="{linkbutton1}"/>
<mx:AddChild relativeTo="{panel1}" position="lastChild">
<mx:LinkButton x="10" y="119" label="dkdkdkdkd" cornerRadius="13" color="#DDB92A" themeColor="#1DDD38" id="linkbutton0" click="currentState = 'contact'"/>
</mx:AddChild>
</mx:State>
<mx:State name="thankYou" basedOn="contact">
<mx:AddChild position="lastChild">
<mx:Panel x="42" y="286" width="250" height="200" layout="absolute" title="Thank you for Contacting Us">
<mx:Text x="10" y="29" text="Thank you for sending us your inquiries. We will try to answer your question in the next year or so." width="210" height="77"/>
<mx:Button x="64" y="128" label="OK" click="currentState = ''"/>
</mx:Panel>
</mx:AddChild>
<mx:SetEventHandler target="{button1}" name="click"/>
<mx:SetProperty target="{button1}" name="label" value="bbbbbb"/>
</mx:State>
</mx:states>
<mx:Panel x="27" y="36" width="250" height="243" layout="absolute" title="Enemies of Ed" id="panel1">
<mx:Text x="10" y="10" text="We would like to hear from you
. Please click on the link 
below to find out how to 
contact us" width="196" height="70"/>
<mx:LinkButton x="10" y="171" label="Click Here to E-mail Us" cornerRadius="13" color="#DDB92A" themeColor="#1DDD38" id="linkbutton1" click="currentState = 'contact'"/>
</mx:Panel>
</mx:Application>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -