Applying behaviors in ActionScript with Resize class
<?xml version="1.0"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" creationComplete="createEffect(event);"> <mx:Script> import mx.effects.Resize; private var resizeLarge:Resize = new Resize(); private function createEffect(eventObj:Event):void { resizeLarge.target=myTA; resizeLarge.widthTo=150; resizeLarge.heightTo=150; resizeLarge.duration=750; } </mx:Script> <mx:VBox borderStyle="solid"> <mx:Button label="Start" click="resizeLarge.end();resizeLarge.play();" /> <mx:TextArea id="myTA" text="Here is some text." /> </mx:VBox> </mx:Application>