Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread John Trentini
Thanks Michael, that did it! Nice and simple (for a simple mind(mine)) ... Great, much (very much) appreciated :) :) and thanks to eveybody else's input as well I am learning, I am learningpromise. lol JohnT Michael Boski wrote: try this. frame one: // var myMenuData = new Lo

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Michael Boski
try this. frame one: // var myMenuData = new LoadVars; var myTxt:Array = new Array();' // myFile = "../textFiles/menuLabels.txt"; myMenuData.onLoad = function(success) { if (success) { trace("LoadVars loaded successfully: "+this.loaded); <==this one returns = true _parent.myTxt = this

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Allandt Bik-Elliott (Receptacle)
mybad On 28 May 2007, at 15:30, Muzak wrote: - Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 2:00 PM Subject: Re: [Flashcoders] loadVars not initialising first or wherever you store your app vari

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Muzak
- Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: 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&#x

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Allandt Bik-Elliott (Receptacle)
TED]> To: <[EMAIL PROTECTED]>; Sent: Monday, May 28, 2007 12:03 PM Subject: Re: [Flashcoders] loadVars not initialising first i've found that the best way of dealing with this kind of thing is to push it onto an array (either on _root or _global) in the onLoad and manipulate th

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Muzak
- Original Message - From: "Allandt Bik-Elliott (Receptacle)" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Monday, May 28, 2007 12:03 PM Subject: Re: [Flashcoders] loadVars not initialising first > i've found that the best way of dealing with this k

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Allandt Bik-Elliott (Receptacle)
go figure, hey! Thanks for your input. cheers JohnT Muzak wrote: - Original Message - From: "John Trentini" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 7:23 AM Subject: Re: [Flashcoders] loadVars not initialising first Thanks Mike, i am realising this but i

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread John Trentini
wrote: - Original Message - From: "John Trentini" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 7:23 AM Subject: Re: [Flashcoders] loadVars not initialising first Thanks Mike, i am realising this but i haven't found a way of stopping everything else from happening unt

Re: [Flashcoders] loadVars not initialising first

2007-05-28 Thread Muzak
- Original Message - From: "John Trentini" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 7:23 AM Subject: Re: [Flashcoders] loadVars not initialising first > Thanks Mike, > i am realising this but i haven't found a way of stopping everything else

Re: [Flashcoders] loadVars not initialising first

2007-05-27 Thread Helmut Granda
John, create a function that has to be called once the information is being loaded. onload = yourfunction; or you can also do what you are doing currently... myMenuData.onLoad = function(success) { if (success) { yourfunction(); } now you can place all the information you need inside yourfun

Re: [Flashcoders] loadVars not initialising first

2007-05-27 Thread John Trentini
Thanks Mike, i am realising this but i haven't found a way of stopping everything else from happening until my loadVars is complete. Michael Boski wrote: trace(myTxt[3]); <== this trace returns undefined returns undefined because it is not loaded yet. you have to access the load after the o

Re: [Flashcoders] loadVars not initialising first

2007-05-27 Thread John Trentini
dHandler); this.myMenuData.load(this.myFile); regards, Muzak - Original Message - From: "John Trentini" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 4:22 AM Subject: [Flashcoders] loadVars not initialising first Hi there, (my second try at this, I was really

Re: [Flashcoders] loadVars not initialising first

2007-05-27 Thread Michael Boski
trace(myTxt[3]); <== this trace returns undefined returns undefined because it is not loaded yet. you have to access the load after the onLoad event. this could be a couple seconds later or even a whole minute depending on how long it takes to load the file. Mike On 5/27/07, John Trentini <[E

Re: [Flashcoders] loadVars not initialising first

2007-05-27 Thread Muzak
yMenuData.onLoad = Delegate.create(this, this.menuDataLoadHandler); this.myMenuData.load(this.myFile); regards, Muzak - Original Message - From: "John Trentini" <[EMAIL PROTECTED]> To: Sent: Monday, May 28, 2007 4:22 AM Subject: [Flashcoders] loadVars not initialising firs

[Flashcoders] loadVars not initialising first

2007-05-27 Thread John Trentini
Hi there, (my second try at this, I was really hoping on some help with this one) I am sure this has an easy answer but i can't get my head around it. I have even put the code into an #include file to see if it would init the loadVars before anything else but, no luck.. On Eric's early sugges