简体   繁体   中英

AS3 Preloader which loads itself, not an external swf

How can I create a preloader which does this? I have seen many examples of code to load an external swf, but never something that loads itself.

Thanks for the help, this is driving me crazy...

It's really simple. First you need to move everything except the preloader off the first frame.

Everything else is basically the same as an external preloader - the only difference is that you're checking the current and total size of the current movie, rather than a separate one.

或者,您可以尝试使用FlashDevelop的Preloader模板,这真的很容易

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM