Actionscript 2的简单预加载程序设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Actionscript 2的简单预加载程序设置相关的知识,希望对你有一定的参考价值。

  1. this.onEnterFrame = function() {
  2. filesize = myMovieClip.getBytesTotal();
  3. loaded = myMovieClip.getBytesLoaded();
  4. preloader._visible = true;
  5. if (loaded != filesize) {
  6. percent = 100*loaded/filesize;
  7. preloader.preload_bar._xscale = percent;
  8. } else {
  9. preloader._visible = false;
  10. onMovieClipLoaded();
  11. delete this.onEnterFrame
  12. }
  13. };
  14.  
  15. onMovieClipLoaded = function(){
  16. trace("if you are reading this, the movieclip has been loaded");
  17. }

以上是关于Actionscript 2的简单预加载程序设置的主要内容,如果未能解决你的问题,请参考以下文章

ActionScript 3 Oman3D - 简单预加载器

ActionScript 3 预加载器和进度结构

ActionScript 3 AS3预加载器

ActionScript 3 AS3:预加载器

ActionScript 3 绘制圆预加载器

ActionScript 3 用于加载和预加载外部闪存或图像的通用类