I have a small problem. I created preloader following Tween/AS preloader tutorial. Now I want to put the preloader into a movieclip so I can center it on stage with:
preload._x = Stage.width/2;
preload._y = Stage.height/2;
Everything works except that it skips outro animation and goes straight to stage 2. Could somebody please point me in the right direction?
My code on frame 20 of MC preload:
loaded_bytes = Math.round(_root.getBytesLoaded());
loaded_total = Math.round(_root.getBytesTotal());
total_percent = (loaded_bytes/loaded_total)*100;
_root.preload.loaded_text = Math.round(total_percent);
startpoint = _root.preload.bar._x
_root.preload.text._x = startpoint + (_root.preload.bar._currentframe*2.5);
frame 21:
if (total_percent == 100) {
play();
} else {
gotoAndPlay(20);
}
last frame of preloader:
unloadMovie(this);
gotoAndPlay("Scene 2", 1);
any help would be very appreciated