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.
Kim
Points:0
Posts:0

6/26/2010 8:42:08 PM

Title: Passing variable


Can I pass a variable from one window to another.I am starting in a window and after entering a value I will close that window and launch another window from that window.
I want a variable from first window to be passed to the second window.
Please help.



1
Warrior
Points: 420
Posts:0
6/26/2010 9:12:31 PM



If you are using AIR then declare a public variable inside your new window and set that variable before opening the new window , see the code below

//myWindow is the window to be opened
	myWin = new MyWindow();
	myWin.title = "My Window in AIR Application";
//myVar is the public variable declared inside myWindoiw
	myWin.myVar=" This variable is passed ";
	myWin.open();



Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+1 



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