Need help: load movie clip from library without exporting on frame 1?
Hello fellow geeks,
I'm working on a little platformer. Building the preloader now, and it's going to look amazing. Just one little problem: I want to use the character movie clip in the preloader.
Now many of you might say things like 'just set the character clip to 'export on frame 1', but the problem is that if I do, the character clip will load before the preloader shows, rendering the preloader kind of useless. So here's what I would like to happen:
1. User somehow opens the .swf.
2. .swf loads the preloader (white screen) (does not take long)
3. .swf shows the preloader (preloader is now visible)
4. .swf loads the character movie clip (preloader still visible)
5. .swf attaches the character movie clip to the stage (preloader and character clips are now visible)
6. .swf loads the rest of the game's contents (while preloader and character are still both visible)
7. if getBytesLoaded() == getBytesTotal() I'll take it form here.
Surely some of you know if this can be done, and if so, how?
I'd really appreciate some help on this one.
Thank you!
Koen Ahn