PDA

View Full Version : Whats The Library Load Order?


Pleh
05-10-2004, 06:08 PM
Just a coupple of quick questions that hopfuly have simple answers...

1. What order does flash load the library components at runtime?

2 Can you change the order library items are loaded?

I ask this because i am using the movie clip loader from this site and it loads about halfway through so you get a blank screen untill its loaded the loader because its not loading the loader first, if you get what i mean.

Pleh
05-10-2004, 06:17 PM
oh yeah the file thats not loading halfway through is a linked file loaded from an external 3k file called loader.swf if that helps at all

Scottae
05-10-2004, 11:40 PM
I believe that items load in the order in which they appear on stage, with exception to symbols that have linkage id's and are exported to the first frame. They come before that. So you need to have at least the first frame of your main timeline clear of everything except your preloader stuff. Get rid of any 'export to first frame' linkage symbols. Have the loader on the main timeline.

Pleh
05-11-2004, 08:46 AM
ok, i will try that thanks

Pleh
05-11-2004, 05:22 PM
that dident work :( i have tried loads of different arragements (having the loader imported, exported, exported to first frame, imbeded in the first frame etc.) i have even tried not having the loader and just having a different coloured box on the first frame and it still takes ages to load just a coloured box, is there anything i have to do to tell the movie to play as soon as it dowloads the first frame? what am i doing wrong?

Scottae
05-12-2004, 12:09 PM
It's hard to say without actually seeing your .fla file. Anyway, test the movie out in Flash and have a look at the 'bandwidth profiler' (Ctrl + B) while you are testing it. It will show you what the file size of each frame is. If you have a large file size on frame one (greater than say 4K), then that's your problem. You can go to the publish settings (Ctrl + Shift + F12), hit the Flash tab, and check the check box that says 'Generate size report', then publish and hit ok. This will create a text file which tells you everything about each frame. It shows the number of bytes per frame, all the symbols used by the movie and their size, and any other assets used by the movie such as embedded fonts, sounds, etc. This will help you get an idea of what's where on your movie so that you know how you need to adjust it so that it's optimized for your needs.

Pleh
05-13-2004, 11:13 AM
Thanks man, thats exactly what i needed, ive fixed my problem, there was loads of stuff being imported into frame 1 i dident even know about.

Thanks again

Gomfucius
11-08-2007, 05:35 AM
Even after 3.5 years, this thread helped me a great deal.
Thanks!

Cosmodrome
11-04-2009, 02:55 PM
...And even after 2 more years, and some other Flash/AS version, that helped me.
Thanks a lot! :)