Flex的图形资源:SWF或SWC?图形、资源、Flex、SWF

2023-09-08 12:09:58 作者:许卿白头上上签

这是一个更好的格式存储图片资源Flex应用程序,SWF或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?

推荐答案

在一个单独的SWF资产被加载并包括在运行时。

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

在SWC资产被加载并列入/在编译时进行编译。

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

您也可以直接在编译时(检查出嵌入元数据)嵌入主要的应用程序SWF中的资产。

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

当然,你也可以加载单独的资产(如PNG)直接运行。

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.

迈克