开发者

Main loader [as3]

开发者 https://www.devze.com 2023-01-09 15:17 出处:网络
I made a project in as3. Everything works fine but i attach some movieclip from the library, and the size of the swf is 300kb.

I made a project in as3. Everything works fine but i attach some movieclip from the library, and the size of the swf is 300kb.

I have no timeline keyframes, everything is attached dynamically from the library or externally.

How can I build a preloader fo开发者_运维问答r the root? (yeah i know, root doesn't exist anymore but i'm asking for it cause i come from as2)


By far the easiest way to add a preloader in as3 is to just have a 'wrapper' swf that loads in your main swf. There's loads of tutorials about this on the net and about using the Loader class in general. There is a much more convoluted method of doing it related to not loading your assets until frame 2 at which point they all have to be on the stage or some such shenanigans that I've never bothered to get working and I would recommend you ignore.

0

精彩评论

暂无评论...
验证码 换一张
取 消