Flex graphic assets: SWF or SWC?

前端 未结 4 1601
孤独总比滥情好
孤独总比滥情好 2020-12-28 08:56

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?

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 09:52

    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

提交回复
热议问题