Hello everyone.I've been searching this on the net but i haven't find an answer. I have array data from title window which i need to pass directly to main window after closing the title window.
Heres my code on main window
private function showWindow():void
{
var dataCntnrsForTxt: Array = new Array;
var ttlWindow:addQuest=addQuest(PopUpManager.createPopUp(this, addQuest, true));
pointer.x=btnaddQuestion.x;
pointer.y=btnaddQuestion.y;
pointer=btnaddQuestion.localToGlobal(pointer);
ttlWindow.x=pointer.x-500;
ttlWindow.y=pointer.y;
ttlWindow.dataCntnrsForTxt= dataCntnrsForTxt;
var i: int;
for (i = 0; i < dataCntnrsForTxt.length; i++)
{
var lblshow: Label = new Label;
lblcntnrs.addChild(lblshow);
lblshow.text = dataCntnrsForTxt[i];
}
}
i want to display automatically the result to main window after closing the title window
heres the code on title window
[Bindable]
public var dataCntnrsForTxt: Array = new Array;
private function trythis():void
{
var i:int;
for (i = 0; i < contnrs.numChildren; i++)
{
dataCntnrsForTxt.push(TextInput(contnrs2.getChildAt(i)).text);
}
PopUpManager.removePopUp(this);
}
I am a newbie on flex programming. Thank you in advance for your help