[sourcecode language=”java”]this.stop();
var num:Number = 0;
addEventListener(Event.ENTER_FRAME, loadingx);
function loadingx(e:Event){
num = Math.floor(loaderInfo.bytesLoaded/loaderInfo.bytesTotal * 100);
//trace(num)
if(num == 100){
this.play();
menu_mc.gotoAndPlay(2);
removeEventListener(Event.ENTER_FRAME, loadingx);
}
} [/sourcecode]