Hi,
I need to know what I have to do in order to move this line of code off the main timeline and into a movieClip. the code is here:
stop();
this.onEnterFrame = function(){
var myLoaded:Number = Math.round(_root.getBytesLoaded());
var myTotal:Number = Math.round(_root.getBytesTotal());
var myPercent:Number = myLoaded/myTotal * 100;
if (myPercent == 100) {
delete this.onEnterFrame;
_root.gotoAndStop(2);
}
}
The code works fine whe on the main timeline but, doesn’t work when i place it into a movieClip. can Anyone help me out?------ Play.:doh: