Actionscript 2的简单预加载程序设置
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Actionscript 2的简单预加载程序设置相关的知识,希望对你有一定的参考价值。
this.onEnterFrame = function() { filesize = myMovieClip.getBytesTotal(); loaded = myMovieClip.getBytesLoaded(); preloader._visible = true; if (loaded != filesize) { percent = 100*loaded/filesize; preloader.preload_bar._xscale = percent; } else { preloader._visible = false; onMovieClipLoaded(); delete this.onEnterFrame } }; onMovieClipLoaded = function(){ trace("if you are reading this, the movieclip has been loaded"); }
以上是关于Actionscript 2的简单预加载程序设置的主要内容,如果未能解决你的问题,请参考以下文章