1
votes

I have a project created from many external swc libraries that are included at compile-time.

Normally creating a preloader involves unchecking "export in frame 1" on all classes, then having them on the 2nd frame so Flash can still access them.

With the swc's however, all the classes are in separate swc file libraries. When I uncheck "export in frame 1", I can't access them from the main FLA file, and so flash just can't find them and gives errors saying those classes don't exist. How can I make them loaded properly with the preloader (instead of being loaded all at once before preloader displays), even though they are in other files?

Long story short, how can I properly make a preloader when I'm using multiple swc files at compile-time?

Thanks

1
Why don't you just make a separate swf for a preloader and load your main content through a Loader? That way you don't have to rely on Flash CS so much.Marton Pallagi
Unfortunately that's not possible as the game needs to be a single file for distribution. There must be a way to use an internal preloader when dealing with multiple swc's.user3754283

1 Answers

0
votes

You misunderstand what swcs are. Even though they are at development time external files, they are very much part of your compiled app when you publish. If you include a swc that is 50M then your app will end up being 50M bigger and your preloader will have to deal with it. No workarounds.