Posted By

daisuke103 on 02/20/08


Tagged

textmate load frame loading as2


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Winkyboy


AS2 Loading ローディングサンプル


 / Published in: Other
 

  1. /* ENTERFRAME ACTION */
  2. this.onEnterFrame = function ():Void{
  3. var $myGetByeLoaded:Number = this.getBytesLoaded();
  4. var $myGetBytesTotal:Number = this.getBytesTotal();
  5. var $myLoadComplete:Number = Math.round($myGetByeLoaded*100/$myGetBytesTotal); // %で表示
  6. trace($myLoadComplete);
  7. if ($myGetByeLoaded == $myGetBytesTotal) {
  8. // ロード後のアクション
  9. }
  10. }

Report this snippet  

You need to login to post a comment.