We Recommend

Building Websites with TYPO3 Building Websites with TYPO3
Follow a clear path through the power and complexity of TYPO3 to get started, and build your own TYPO3 website This book is a fast paced tutorial to creating a website using TYPO3. If you have never used TYPO3, or even any web content management system before, then you need not look further than this book as it walks you through each step to create your own TYPO3 site.


Posted By

daisuke103 on 02/20/08


Tagged

textmate load frame loading as2


Versions (?)


Who likes this?

1 person has 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.