邪贴的金库吧 关注:167贴子:1,766
  • 0回复贴,共1

FLASH预载代码

只看楼主收藏回复

放第一帧及可 作品放第二帧 stop();
var load_bs = 0;
this.onEnterFrame = function() {
load_bs = Math.round((_root.getBytesLoaded()/_root.getBytesTotal())*100);
if (load_bs>=100) {
play();
delete this.onEnterFrame;
} else {
load_mc.gotoAndStop(load_bs);
txt = (load_bs+"%");
trace(txt);
}
};



1楼2012-03-26 17:33回复