I am using loadMovie to load a movie that has a preloader, but the preloader will not work?
var total = _root.getBytesTotal();
var bytesLoaded = _root.getBytesLoaded();
var perc = (bytesLoaded/total)*100;
percent = perc+"%";
showBytes = bytesLoaded + " of " + total;
setProperty("progress", _xscale, perc);
if (bytesLoaded == total) {
percent = "complete";
gotoAndPlay("Done");
} else{
gotoAndPlay("Nope");
}
Nope is the first frame (the frame this code is one), and Done is when the movie begins.
percent and showbytes are both dynamic text fields.