for some reason, my bar does not scale, and the percent is not visible in
the text bar with the percent loaded ...
// function to load an external .swf
function ploader() {
// swf file to load
loadMovieNum("bigfile.swf", 1);
_root.onEnterFrame = function() {
tBytes = getBytesTotal();
bLoaded = getBytesLoaded();
percent = (bLoaded/tBytes) * 100;
if (bLoaded < tBytes){
_root.pBar_mc._xscale = (bLoaded/tBytes)*100;
_root.pBar_mc.label_txt.text = percent & " % LOADED"
} else {
//plays the main movie and deletes preloader
//play();
//_root.pBar_mc.unloadMovie();
delete this.onEnterFrame;
}
}
}
// call the preloader
ploader();
regards,
edward
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com