Mega Code Archive

 
Categories / Flex / Effects
 

Add show effect to a control

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Parallel id="ZoomRotateShow">         <mx:Zoom id="myZoomShow" zoomHeightFrom="0.0" zoomWidthFrom="0.0" zoomHeightTo="1.0" zoomWidthTo="1.0" />         <mx:Rotate id="myRotateShow" />     </mx:Parallel>     <mx:VBox id="myBox" height="100" width="200">         <mx:TextArea id="aTextArea" text="hello" showEffect="{ZoomRotateShow}" />     </mx:VBox>     <mx:Button id="myButton1" label="Show!" click="aTextArea.visible=true;" />     <mx:Button id="myButton2" label="Hide!" click="aTextArea.visible=false;" /> </mx:Application>