<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns="*" layout="absolute" fontSize="14" color="#000000" width="448" height="499">
<mx:Script>
<![CDATA[
private function valueit():void{
//labelone.text="有值了";
WipeRight.play();
}
private function noit():void{
//labelone.text="";
WipeLeft.play();
}
]]>
</mx:Script>
<mx:Dissolve id="Dissolve" alphaFrom="0.0" alphaTo="1.0" duration="5000"/>
<mx:WipeDown id="WipeDown" duration="5000" />
<mx:WipeLeft id="WipeLeft" target="{labelone}" duration="5000" />
<mx:WipeUp id="WipeUp" duration="5000" />
<mx:WipeRight id="WipeRight" target="{labelone}" duration="5000" />
<mx:Panel x="4" y="3" width="440" height="496" layout="absolute">
<mx:Image id="img1" width="402" height="374" source="1.png" x="10" y="41" creationCompleteEffect="WipeDown" />
<mx:Label id="username" text="test" creationCompleteEffect="Blur" x="132" y="10"/>
<mx:Button id="button1" label="状态" x="10" y="427" mouseOver="valueit()" mouseOut="noit()" />
<mx:Label id="labelone" text="鼠标按钮改变组件效果" x="88" y="429" width="146"/>
</mx:Panel>
</mx:Application>