When you say, loop through some XML files to be loaded, and you use different XML objects of course, does Flash wait for the first XML file to be loaded to finish before starting the next, or does it load them all simultaneously?
Thanks,
While I’m at it, I’m stuck on a problem. Basicly I make an object with coordinates in an array 1-10. Then I’m loading some XML file 1-10, and when each one finishes it calls a function which makes use of that data. However, I need a way to pass an ID so this function knows which object its associated with. Like this:
var m:CModel = new CModel(new CVector(att.x, att.y, att.z));
xmlModelLoader* = new XML();
xmlModelLoader*.ignoreWhite = true;
xmlModelLoader*.onLoad = onLoadModel;
xmlModelLoader*.load(att.name+".xml");
public function onLoadModel(success):Void
{
if(success)
l_this.DisplayModel(this);
else
trace("Error loading XML file");
}
public function DisplayModel(xmlModel):Void
{
var m:CModel = ???;
Could I go like load(att.name+".xml", ID); then onLoadModel(success, ID)? I’m not sure because I’m not using the standard onLoad callback function.
Thanks!