Search Flex Components Free

Custom Search

December 25, 2007

Flex Event Triggered Effects Source Code

Flex Effects Sample Source Code: /span>


Create a file:

ShowEffectsDemo.mxml



<?xml version="1.0" encoding="utf-8"?>

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" backgroundAlpha="0">

<mx:HBox horizontalGap="50">

<mx:VBox horizontalAlign="center">
<mx:Image source="@Embed('../assets/products/Nokia_6630.png')"
showEffect="Fade"
hideEffect="Fade"
visible="{cb1.selected}"/>
<mx:CheckBox id="cb1" label="visible" selected="true"/>
</mx:VBox>

<mx:VBox horizontalAlign="center">
<mx:Image source="@Embed('../assets/products/Nokia_6630.png')"
showEffect="WipeRight"
hideEffect="WipeLeft"
visible="{cb2.selected}"/>
<mx:CheckBox id="cb2" label="visible" selected="true"/>
</mx:VBox>

</mx:HBox>

</mx:Application>




Related Flex Tutorials