StupidBeauty
Read times:484Posted at:Sun Dec 23 18:41:09 2012
- no title specified

转载 [转]Flash获取自身swf加载进度的三种方法

如果妳有个大的flash,怕用户在下载过程中就失去耐心 而不愿意看的话,就做一个小的flash来载入这个大flash,并且显示出进度条吧。

http://as3.iteye.com/blog/857252

亮点

第二种方法:双文件法(即加壳)

双文件方法,就是使用一个loader.swf加载一个main.swf(主swf文件)。通过这个加载过程来获取main.swf的加载进度。

具体方法:

1、在loader.as中

n new一个Loader实例 loader,并用load方法载入main.swf

n 在 loader.contentLoaderInfo上添加progress和complete侦听

n 在progress处理函数中更新textField,并在complete处理函数将loader.content添加到舞台



2、在main.as中

l 构建舞台内容

Your opinions
Your name:Email:Website url:Opinion content:
- no title specified

HxLauncher: Launch Android applications by voice commands

 
Recent comments
2017年4月~2019年4月垃圾短信排行榜Posted at:Thu Sep 26 04:51:48 2024
Qt5.7文档翻译:QWebEngineCookieStore类,QWebEngineCookieStore ClassPosted at:Fri Aug 11 06:50:35 2023盲盒kill -9 18289 Grebe.20230517.211749.552.mp4