mybad
On 28 May 2007, at 15:30, Muzak wrote:
----- Original Message -----
From: "Allandt Bik-Elliott (Receptacle)"
<[EMAIL PROTECTED]>
To: <flashcoders@chattyfig.figleaf.com>
Sent: Monday, May 28, 2007 2:00 PM
Subject: Re: [Flashcoders] loadVars not initialising first
or wherever you store your app variables - i really meant that
they shouldn't be stored local to the function, otherwise they
would die with it
They weren't stored locally, the array was declared outside of the
onLoad event handler.
var myTxt:Array;
myMenuData.onLoad = function(success) {
if (success) {
myTxt = this.myVar.split(",");
}
}
Allthough the above code is also not "best-practice" because of the
scope change, it worked and the loaded variables were assigned
to the myTxt Array.
regards,
Muzak
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com