Actionscript 3 Preloader Problem
Hi Guys
Got a tough one here!
I've created a pre loader for a game which has been written in AS3.
However, the preloader doesn't show up until the entire game has been loaded (which kinda defeats the object of a preloader!) :confused:
The problem is, I have a lot of linked assets in the library which I create instances of during runtime.
I've tried switching off "Export on first frame" for every linked asset and set the document's settings to "Export classes in frame 2" but the whole thing goes bananas and I just get a boat load of compile errors (<--- anyone know why this happens?!!)
I've tried putting the assets on a blank frame in the timeline. This works for movieclips, but then I'm stuck when it comes to sound and music (which are large and need to be embedded into the library due to music copyright issues - I can't distribute the mp3s as they're royalty free music files!). This method could work if I could figure out how to sort out the sounds/music.
I really don't want to create a separate pre-loader or have any external assets/files because I intend to distribute this game all over the web and it would be better to have just one protected SWF file.
I'm really stuck and don't know what to do.
Does anyone have any ideas?? Any help would be appreciated. Thanks! :)