views:

372

answers:

2

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...

+2  A: 

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.

Anon.
Can you give sample code please?
Cyclone
What's your existing code for an external preloader?
Anon.
http://sara-intop.blogspot.com/search/label/Preloading%20in%20FlashCS3 Its borrowed unfortunately, I am still new to Flash.
Cyclone
As a reference, here's the first result I got with a quick google for "AS3 Preloader": http://www.actionscript.org/forums/showthread.php3?t=151850
Anon.
Doesn't work unfortunately, upon loading it shows "1" in the textfield and the "bar" doesn't change size.
Cyclone
+1  A: 

alternatively ... You can try FlashDevelop's Preloader template, makes it really easy

Daniel
Wow, thats a great tool. I'll test it out fast, see if I can't make it work.
Cyclone
Oh wow, it works REALLY well! Thanks so much for all the help!
Cyclone