[thelist] LoadMovie with Flash - Help Please
Josh Spiegel
joshsquared at yahoo.com
Thu Jan 31 22:53:01 CST 2002
That was a good idea but I don't think that was it. I did put thisloop.
varIn = "notInYet"
loadVariables("theVariables.txt",0);
While (varIn == "notInYet") {
Trace(varIn);
}
loadMovie(varIn,target);
//I get an infinite loop....
//when I take the loop out the movie doesn't load. I
//can do a list variables and get _level0.pic1 =
// http://xyz/work/dailyjolt/prof1.swf (aka whats //supposed to be
there.)
-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org] On Behalf Of Lindsay Evans
Sent: Thursday, January 31, 2002 9:54 PM
To: thelist at lists.evolt.org
Subject: RE: [thelist] LoadMovie with Flash - Help Please
> My guess is this has something to do with the compiler trying to
> loadMovie first instead of loadVariable even though loadVariable comes
> first.
Well, my guess would be that Flash hasn't finished loading the variables
before it attempts to load the movie. Try putting a trace() between each
of
your statements:
trace('before loadVariablesNum(): ' + theSwf);
loadVariablesNum ("variables.txt", 0);
trace('after loadVariablesNum(): ' + theSwf);
trace('before loadMovie(): ' + theSwf);
loadMovie (theSwf, target1);
trace('after loadMovie(): ' + theSwf);
... and you'll see the value of theSwf at various stages.
If this is the case, then you'll need to create a 'timer' type thing
that
checks the value of theSwf at regular intervals and then loads the movie
when it has changed, having a movie clip in your file that checks the
value
each frame and then loops back to the start (you should only need to
frames)
should work.
HTH
--
Lindsay Evans.
Developer,
Red Square Productions.
[p] 8596.4000
[f] 8596.4001
[w] www.redsquare.com.au
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the thelist
mailing list