[quoted text, click to view] "Carl Fink" <Carl.Fink@nospam.invalid> wrote
>
> The "a script" message is sent when Flash gets stuck on one frame for too
> long. Since XML loading is asynchronous, you could have the loading on
> one keyframe and the code that uses the XML on a later one, then have
> code on an intermediate frame to test whether loading is complete.
hmmm, i have all the functions defined in frame 1. one of them is
loadXML() which does just what you'd expect, and which
has a:
if (success) {
... loads of functions like sorting the XML ...
stop();
}
in it to move on when the loading has been succesful. in frame 2 i put:
loadXML();
and in frame 4 a simple
gotoAndPlay(3);
i'd expect the movie to go to frame 2, where it starts to load
the XML, then move between frame 3 & 4 while loading, and
stop (at whatever frame) when the loading is done. to test
in what frame the movie is i added a big "1", "2" etc in frames
1, 2 etc.
turns out the movie stays in frame 1, and only moves to frame
2 when the XML is loaded. sounds like the command to load
the XML does stop the movie in the frame until the XML is
loaded. the movie doesn't even exit the frame: frame 2 is
shown in the movie only when the XML is loaded (and the movie
has stopped).
[quoted text, click to view] > For instance, if your XML.load() is on frame 1, you could make frame 3 a
> keyframe, then for its Actions have something like,
>
> if (yourXML.getBytesLoaded() < yourXML.getBytesTotal){
> gotoAndPlay(2)
> }
>
> (if frame 2 doesn't have a stop()).
>
> This would constantly shuttle Flash between frames 2 and 3 until the
> file is completely loaded and parsed.
this doesn't work. am i overseeing something?
by the way, the problem i had does get solved this way. the XML
page which is too large to load in a 'static' movie (ie: a 1-frame move
that has all the code and a stop() in the first and only frame) does
load properly now, without the warning that the player is running
slow.
my site is at
http://mikkie.net. maybe some of you can see if the
list of CD's (music --> cd's) loads properly?
mike