stop();
var mc = this.createEmptyMovieClip("loading_mc",1);
mc.loadMovie("loading.swf");
♡불러들여지는 loading.swf
this.onEnterFrame = function(){
var loaded = this._parent.getBytesLoaded();
var total = this._parent.getBytesTotal();
//trace(loaded+"/"+total);
//로딩바 조절
bar_mc._xscale = (loaded/total)*100; //몇퍼센트 로딩되었는지
if(loaded == total && total > 0){
delete this.onEnterFrame;
//로딩이 끝나면 자기자신이 없어져야
this.removeMovieClip();
this._parent.play();
}
}
Comment on this post!