Monday, August 07, 2006

Flash Shared Library

Flash Shred Library is awesome...

i was wondering how you would create a library that can be used on multiple flash projects and i think this holds the key.
i think with a little help of object oriented coding and shared library this is possible.

shared libraries are just a standard library that has many symbols that are exported for runtime sharing. (just right click on items in the library and property or linkage then check runtime sharing, and export for actionscript - all three will be checked)
you could creat font, picture, arrows, buttons whatever they are you can put that into one single file.

The advantages:
when you use multiple swf files in a project, viewers no longer need to import/download elements multiple times.
After loading, it will definetely speed up the experience since view has much less to load.

Disadvantage:
everything loads all at once when you ask (by actionscript) to load shared library swf files. - so when you load this is what you need to think about.

but i think things like preloader animation etc could stay in here, etc that should be used in multiple documents will stay here and that will save you great deal of CPU and Memory.

i think if you use this in a way you could create really efficient workflow for yourself. and i'm working on it.
let me know, if you are also a flash developer, how you use this feature.

No comments: