I've not had to do that for XML files, but I have done it with images, i.e.
load all images before continuing.

This was the part of the code that did that(ignore most of it as it's out of
context):

------------------------
images[i] = createClassObject(mx.controls.Loader, "test" + i, i);
images[i].autoLoad = false;
images[i].scaleContent = false;
images[i].contentPath = a["path"];
images[i].move(OFF_SCREEN_X, OFF_SCREEN_Y); // Move off screen till needed

images[i].lo = new Object();
images[i].lo.complete = function(eventObject){

        noLoaded++;

        if ( noLoaded == noOfImages ) {
                start();
        }

};
images[i].addEventListener("complete", images[i].lo);

images[i].load();
------------------------

With "noLoaded == noOfImages" being the check to see if all images had
loaded.

The same could be done for the XML files but I'm guessing you might want to
do more with them before continuing.

Ade

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Merrill,
Jason
Sent: 07 December 2005 21:52
To: Flashcoders mailing list
Subject: [Flashcoders] Loading multiple XML files


Anyone have a good function example or a class for loading several XML
files and delaying the playhead advance until all files are loaded?

I have tried writing my own, but Flash chokes eventually.

Thanks.

Jason Merrill   |   E-Learning Solutions   |  icfconsulting.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to