2005/07/16 | loading.(记忆不好.写下来)
类别(flash学习) | 评论(7) | 阅读(113) | 发表于 13:51
this.onLoad=function(){
         myBytesTotal=_root.getBytesTotal();
         }
         this.onLoad();
         this.onEnterFrame=function(){
         myBytesLoaded=_root.getBytesLoaded();
         bar_xscale=myBytesLoaded/myBytesTotal*100;
         percent=Math.round(bar_xscale);
         this.bar._xscale=bar_xscale;
         this.bar_per=percent+"%";
         if(myBytesLoaded==myBytesTotal){
         delete this.onEnterFrame;
         _root.nextFrame();
         }else{
         this.stop();
         }
         }
0

评论Comments

日志分类
首页[17]
分类一[1]
flash学习[14]
绘画[2]