
Код:
mc.loadClip("mc.swf", mc);
mclListener.onLoadStart = function(target) {
target.onEnterFrame = function() {
var progress:Object = mcl.getProgress(this);
var loadStatus:Number = Math.round(progress.bytesLoaded / progress.bytesTotal * 100);
if (progress.bytesLoaded) {
this._parent.preloader.statusBar._xscale = loadStatus;
this._parent.preloader.statusTxt.text = loadStatus + "%";
}
if (loadStatus == 100) {
delete this.onEnterFrame;
_root.go.gotoAndPlay(2)
}
}
}
}