short version: don’t import external .swf files into your library
So i’m working on a language project where i need to pull in 78 different animations. These animations show you how to draw a letter, stroke by stroke. (When you click certain letters in a sentence, it will show you how to draw that letter – letters in this foreign language).
I’ve already setup an animation for each letter. I placed each stroke on a separate layer, and animated a simple circle mask to reveal each stroke/layer, in turn. I’ve saved each animation out to it’s own uniquely named .swf file. Each file is usually around 20kb in size.
I just imported 25 of these .swf files into my main project’s library.
– All together, they were 450 KB in my Window’s directory.
– but now the .FLA file I’ve imported into has increased in size : from 1.36 MB to 23.5 MB.
– That’s a 22.14 MB file size increase! what is that, like 17 times as large?
It also seemed to lock up Flash for several minutes while it processed the files. It appears they have been converted to individual key frames – each with it’s own unique instance of the stroke and the mask. T
Soooo, point taken: don’t import .swf files into your library if you can help it. bleargh. Now I’ll go program it to import all these .swf files at runtime, and see how this affects performance. weee! If I don’t write more, then it’s to be assumed this is a much better approach.