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
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
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
- 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
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
- 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
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
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
- 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
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
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
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
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
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
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
15 matches
Mail list logo