For example suppose that there is an App where you wanted a Panel control to resize on click of button, then u would probably use setting the width and height of the panel.Which will resize the Layout, but the resize is not smooth [i.e immediate movement in resize] ,so we have to slow down the resize so that it looks fine [smooth].
So here we have to use a tag called <mx:Resize /> to achieve this.
Example :
<mx:Resize duration=”2000″ id=”r1″/>
Now this resize Effect can be included with any layouts.
Here iam using a Canvas, below one shows it.,
<mx:Canvas id=”cnv” width=”50%” height=”100%” resizeEffect=”r1″>
<mx:Panel layout=”absolute” id=”p” height=”100%” width=”100%”>
<mx:ControlBar horizontalAlign=”center”>
<mx:Button label=”FullScreen” click=”fullscreen()” id=”f”/>
<mx:Button label=”Compact” click=”compact()” id=”c”/>
</mx:ControlBar>
</mx:Panel>
</mx:Canvas>
Here resizeEffect is the property iam using [in canvas] to specify the resize effect to the canvas.
And the functions are here which will move the canvas. to full screen.,
<mx:Script>
<![CDATA[
import mx.effects.easing.*;
import mx.controls.Alert;
private function fullscreen():void
{
cnv.width=this.screen.width-100;
}
private function compact():void
{
cnv.width=(this.width)/2.2;
}
]]>
</mx:Script>
So atlast the the resize of canvas is smoothen by using resize effect..using <mx:Resize /> Tag and resizeEffect Property. simple and small but very use full.

Very good! I have never saw it before
Thanks, this helped me “get it done” faster.
hi i cant understand
Hi ,
Can you tell me which part , i can rewrite the post.Can you be clear.
regards,
kumar.
how can we give effect move and resize for container which should increse its height only to up side ?
Container are resizable from the both the ends and to achive this you got to move the container[x,y] to the position from where you actually want to stat the resize and do the height thing.
comment me for any queries.
regards,
kumar.
HI kumar ,
u r idea has helped me out .
thank u ,
Hi Kumar
Nice blog. But distorted logo. Please do something about it
Thanks! this is exactly what i was looking for! Took me more than 40 minutes to figure it out that i had to google “resize Effect” instead of “show effect”
Hi,
Yes i did my best to include keywords on the post name, so that they appear on top easily on search engines.:-)
regards,
kumar.
hey kumar,
its really helpful.exactly for what I am looking for.
Gud work !!!!!!!!!
Hi Kumar,
its very helpful but is there a way to see such that the resize can be done only to left and the right side remains as such becoz in my application i have tool icons on left and the right side can be overlapped when resized.
Hi,
Thanks for that info.
regards,
kumar.
Hi Please guide me how to configure Flex 4.5 in eclipse Helios.Give me the full details na