FLEX中的Effect效果触发器
2011-03-06 20:13 精诚所至 金石为开 阅读(212) 评论(0) 编辑 收藏 举报
关于效果触发器
可以通过设置样式style属性设置触发器效果。setStyle属性也可设置。不再重复。
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Image id="myImg" source="@Embed(source='C:/Documents and Settings/Administrator/面/assets/logo1.jpg')" x="134" y="70" visible="{myCheck.selected}" showEffect="{my}" hideEffect="{my}"/> <mx:WipeDown id="my"/> <mx:CheckBox id="myCheck" x="360" y="158" width="79" label="sadfasd f"/> <mx:Button click="myImg.visible=!myImg.visible" x="360" y="188"/> </mx:Application>paralell也可以作为效果触发器哦
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> <mx:Image id="myImg" source="@Embed('C:/Documents and Settings/Administrator/桌面/assets/logo1.jpg')" x="134" y="70" visible="{myCheck.selected}" showEffect="{my}" hideEffect="{my}"/> <mx:Parallel id="my"> <mx:WipeLeft/> <mx:Blur/> </mx:Parallel> <mx:CheckBox id="myCheck" x="360" y="158" width="79" label="sadfasd f"/> <mx:Button click="myImg.visible=!myImg.visible" x="360" y="188"/> </mx:Application>代码完。