tia_kamakshi
asked on
Passing Object from one .swf file to another
Hi,
I am new to action script 3.0
I am working on existing flash project which is calling internaly swf files one after the other.
I have code available.
In my website I have all the .swf files are available
In SaveForm.swf file below code is used
Settings.getInstance().dis patchEvent (new SiteEvent(SiteEvent.JUMP_T O_PAGE, true, true, { page: 13 } ));
which is taking to the another ShareForm.swf file
This is in method submitData()
Also in the same SaveForm.swf, I have another object UserData, where all user data is saved
private function saveUserData():void {
var my_message:String = 'Hello';
// setup User Data object
//popAlert("Dinesh3",yourf irstname);
//popAlert(titleList.value ,yourfirst name);
UserData2.getInstance().se tTitle(Str ing(titleL ist.value) );
trace("--------------->"+t ypeof(titl eList.valu e))
popAlert("Dinesh4",yourfir stname);
trace("Dinesh 5");
UserData2.getInstance().se tFirstname (yourfirst name.text) ;
UserData2.getInstance().se tLastname( yourlastna me.text);
UserData2.getInstance().se tEmail(you remail.tex t);
UserData2.getInstance().se tCountry(_ selectedCo untry);
}
I wanted to recive UserData2 object values in my ShareForm.swf
All object values are accepting in method jumpToPageHandler() ShareForm for example
youremail.text = UserData2.getInstance().ge tEmail();
What code I should write in both files so, that I should receive UserData2 object values in ShareForm.swf
I am not sure why this is not working in existing code, I can see this bit is working on production, but cannot see any code in code avalible
so, I have to pass these values like this only
Please guide me. I am attaching both .fla files action script. Please find it attached.
Many Thanks,
SaveForm.as
ShareForm.as
I am new to action script 3.0
I am working on existing flash project which is calling internaly swf files one after the other.
I have code available.
In my website I have all the .swf files are available
In SaveForm.swf file below code is used
Settings.getInstance().dis
which is taking to the another ShareForm.swf file
This is in method submitData()
Also in the same SaveForm.swf, I have another object UserData, where all user data is saved
private function saveUserData():void {
var my_message:String = 'Hello';
// setup User Data object
//popAlert("Dinesh3",yourf
//popAlert(titleList.value
UserData2.getInstance().se
trace("--------------->"+t
popAlert("Dinesh4",yourfir
trace("Dinesh 5");
UserData2.getInstance().se
UserData2.getInstance().se
UserData2.getInstance().se
UserData2.getInstance().se
}
I wanted to recive UserData2 object values in my ShareForm.swf
All object values are accepting in method jumpToPageHandler() ShareForm for example
youremail.text = UserData2.getInstance().ge
What code I should write in both files so, that I should receive UserData2 object values in ShareForm.swf
I am not sure why this is not working in existing code, I can see this bit is working on production, but cannot see any code in code avalible
so, I have to pass these values like this only
Please guide me. I am attaching both .fla files action script. Please find it attached.
Many Thanks,
SaveForm.as
ShareForm.as
Where FLA file?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks dgofman,
I will try this tommorow and come back to you.
Thanks again
I will try this tommorow and come back to you.
Thanks again
ASKER
Hi dgofman,
Just for information, I have not yet tested this. I will test and come back to you today or by tommorow.
Sorry about delay
Thanks again for your help
Just for information, I have not yet tested this. I will test and come back to you today or by tommorow.
Sorry about delay
Thanks again for your help