loading.(记忆不好.写下来)

      flash学习 2005-7-16 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();
         }
         }
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}