lastingforhours
Programmer
i have a preloader that works like this...
this works perfectly fine... unless i have something in that movie's library that is exported for actionscript. so i notice that i had the box checked to export that library item in the first frame, i figured "cool, this is the problem." yet when i do that, i can no longer use the attachMovie function with that exported library item. whats wrong here?
Code:
[COLOR=blue]first frame:[/color]
var loaded:Number = _root.getBytesLoaded();
var total:Number = _root.getBytesTotal();
var percent:Number = Math.round((loaded/total)*100);
loadText.text = "Loading "+percent+"%";
[COLOR=blue]second frame:[/color]
if (loaded == total) {
play();
} else {
gotoAndPlay(1);
}
this works perfectly fine... unless i have something in that movie's library that is exported for actionscript. so i notice that i had the box checked to export that library item in the first frame, i figured "cool, this is the problem." yet when i do that, i can no longer use the attachMovie function with that exported library item. whats wrong here?