I thought it was about time I put a preloader on my project incase the xml file gets too big. However, it stumped me though and now I've come back to it I'm still stumped!
I've found various little tutorials and the most basic ones use the same principal as an image loader eg
But basically the best I get with the various methods is nothing happens while it's loading then a 'finished' when it's done (no update calls are made, no % is shown etc) and I can't get round this.
I'm turning it over to you smart people as I'm sure you've got a simple method like that which actually works, and which I can figure out how to impliment into my project where it's not sat on the _root/this. timeline/object etc.
I'm using Flash MX (6) / AS2
_________________________________
Leozack
I've found various little tutorials and the most basic ones use the same principal as an image loader eg
Code:
onEnterFrame = function(){
var todo:Number = myxml.getBytesTotal();
var done:Number = myxml.getBytesLoaded();
if(todo == done){
trace("XML LOADED");
delete onEnterFrame;
} else {
if(todo){
trace("XML " + String(Math.round(100 / todo * done)) + "%");
}
}
}
I'm turning it over to you smart people as I'm sure you've got a simple method like that which actually works, and which I can figure out how to impliment into my project where it's not sat on the _root/this. timeline/object etc.
I'm using Flash MX (6) / AS2
_________________________________
Leozack
Code:
MakeUniverse($infinity,1,42);