Mega Code Archive

 
Categories / Flex / Effects
 

Using MXML to define the effect

<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">     <mx:Resize id="resizeLarge" target="{myTA}" widthTo="150" heightTo="150" duration="750" />     <mx:Canvas height="300" width="400" borderStyle="solid">         <mx:Button label="Start" x="50" y="50" click="resizeLarge.end();resizeLarge.play();" />         <mx:TextArea x="100" y="100" id="myTA" text="Here is some text." />     </mx:Canvas> </mx:Application>