AS3 preloader inside .as file

Hi there!

yet another preloader post i know!! i have tried so many tutorials and solutions but nothing seems to be working for me.

I am trying to put the preloader in my .as file because if i put a empty keyframe before everything on my timeline (and put in there) i get errors as my .as is trying to find objects that are not on the first frame stage (even when i set export classes frame2)

I have have posted an edited version of my .as file so you can get the drift of my structure.

any help would be much appreciated, even if it is re-structuring my functions!

thanks in advance :slight_smile: