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.
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();