Use ActionScript to set up resize effect
<?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"> <mx:Script> import mx.effects.Resize; public function resizePanel():void { var myResize:Resize = new Resize(); myResize.target = myPanel; myResize.widthBy = 100; myResize.heightBy = 100; myResize.play(); } </mx:Script> <mx:Panel id="myPanel" /> <mx:Button label="Resize" click="resizePanel()" /> </mx:Application>