rollover_practice.mxml

来自「Java界面解决方案。使用FLEX和后台数据库通讯。完美界面效果。可作为BS系统」· MXML 代码 · 共 21 行

MXML
21
字号
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
	<mx:states>
		<mx:State name="bookDetails">
			<mx:AddChild position="lastChild">
				<mx:Text x="38" y="252" text="XML is a completely platform agnostic data medium. Flash is able to make use of XML&#xa; data, which is very useful when you are creating Rich Internet Applications - it &#xa;allows you to populate Flash web interfaces with data from pretty much any source &#xa;that supports XML as a data medium, be it databases, raw XML files, &#xa;or more excitingly, .NET applications, web services, and even Microsoft Office&#xa; applications such as Excel and Word" width="498" height="143"/>
			</mx:AddChild>
			<mx:AddChild position="lastChild">
				<mx:Label x="56" y="416" text="ISBN: 1590595432"/>
			</mx:AddChild>
			
			<mx:SetEventHandler name="rollOut" target="{img}" handler="currentState = ''">
				
			</mx:SetEventHandler>
		</mx:State>
	</mx:states>
	<mx:Image x="166" y="87" source="img/07_avatar_middle.jpg" id="img" 
		rollOver="currentState = 'bookDetails'"  />

</mx:Application>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?