PDA

View Full Version : Preloader in Document Class (Seems like a day for preloading issues)


codemad
11-04-2008, 05:37 AM
Normally i have a separate preloader swf to load my main movie.

My application uses a document class and stupid flash waits until the whole movie is loaded before calling the constructor.

I wanted to put my loading script in this document class because I am only allowed to upload one swf to the site i am submitting my swf to.

My app has just the one empty frame. everything is loaded in the document class to be put on stage.

i tried putting a preloaded in frame one directly on the stage but this didn't work either.

feeling stupid and frustrated.

any ideas,

thanks,

andre

codemad
11-04-2008, 06:27 AM
ugly ugly ugly

put all my library stuff on frame two

my game on frame 3

loaded everything off first frame except sounds

got it to work with preloader on first frame.

it's not very nice but it sorta works.

if you have a better way please let me know.