Flex 图形资产:SWF 还是 SWC? [英] Flex graphic assets: SWF or SWC?

查看:28
本文介绍了Flex 图形资产:SWF 还是 SWC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪种格式更适合为 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.

麦克

这篇关于Flex 图形资产:SWF 还是 SWC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆