⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 state_practice.mxml

📁 Java界面解决方案。使用FLEX和后台数据库通讯。完美界面效果。可作为BS系统的参考。
💻 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 =&quot;thankYou&quot;" 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&#xa;. Please click on the link &#xa;below to find out how to &#xa;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 + -