5/4/2010 3:26:39 AM
Title:
Resize Titile window
Hi,
can any one provide the example of this (or) code.
Thanks & Regards,
K.V.Ramakrishna
5/4/2010 7:55:35 AM
do you need a code for resizing effect on title window ? You can add simply resize effect on title window for that
5/4/2010 10:18:06 PM
ya, please share the code
5/5/2010 4:39:03 AM
check the below example to implement resize effect on a titleWindow in flex
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" verticalAlign="middle" backgroundColor="white">
<mx:Script>
<![CDATA[
//change width and height of titlewindow
private function sizePanel(w:uint, h:uint):void {
panel.width = w;
panel.height = h;
}
]]>
</mx:Script>
<mx:Resize id="resize_effect" />
<mx:Button label="Resize window to 120x100" click="sizePanel(160, 160);" />
<mx:Button label="Resize window to 240x100" click="sizePanel(240, 160);" />
<mx:Label text="w:{panel.width}, h:{panel.height}" />
<mx:TitleWindow id="panel" title="Resize effect" width="320" height="240" resizeEffect="{resize_effect}">
</mx:TitleWindow>
</mx:Application>