<?xml version="1.0"?>
<!-- Simple example to demonstrate the Iris effect. -->
<!--
如何使用Flex Iris Effect
MyShareBook.cn 翻译
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Iris id="irisOut" duration="1000" showTarget="true"/>
<mx:Iris id="irisIn" duration="1000" showTarget="false"/>
<mx:Panel title="Iris Effect Example" width="75%" height="75%"
paddingTop="10" paddingLeft="10" paddingRight="10" paddingBottom="10">
<mx:Text width="100%" color="blue"
text="Use the Iris effect to show or hide the phone image."/>
<mx:Image id="flex" source="@Embed(source='assets/Nokia_6630.png')"
visible="{cb1.selected}"
showEffect="{irisIn}" hideEffect="{irisOut}"/>
<mx:CheckBox id="cb1" label="visible" selected="true"/>
</mx:Panel>
</mx:Application>
如何使用Flex Iris Effect
最新推荐文章于 2013-11-01 23:09:13 发布