header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
krishna
Points:260
Posts:0

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



1
Forbes
Points: 0
Posts:0
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

2
krishna
Points: 260
Posts:0
5/4/2010 10:18:06 PM



ya, please share the code

3
Alden
Points: 0
Posts:0
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>



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 6+5 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions