Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex graphic assets: SWF or SWC?

Which is a better format to store graphic assets for a Flex application, SWF or SWC?

Are there any real differences, and if so what are they?

like image 690
defmeta Avatar asked Oct 02 '08 19:10

defmeta


2 Answers

Assets in a seperate SWF are loaded and included at runtime.

Assets in a SWC are loaded and included / compiled at compile time.

You can also directly embed assets within the main app SWF at compile time (check out the Embed meta data).

Of course, you can also load individual assets (such as a PNG) directly at runtime.

As far as which is better, it really depends on what you are trying to do, and how the assets are used.

mike

like image 54
mikechambers Avatar answered Oct 20 '22 11:10

mikechambers


SWC is what you use when you're looking for a library to compile into your app. You have access to the classes and can import individual parts. SWF is more likely what you're looking for when embedding graphics.

Here's the docs you might be interested in:

http://livedocs.adobe.com/flex/3/html/help.html?content=layoutperformance_06.html#223998

I've been having good success with SVG for images, but there's some caveats since Flex only implements a subset of the features.

like image 3
Glenn Avatar answered Oct 20 '22 10:10

Glenn