flex 如何知道在哪里寻找 .swz 文件?
我自己不制作 Flash:在这家公司,Flash 通常仅用于设计元素,因此设计师构建 Flash,而我的工作只是将其放到网站上。到目前为止一切都很好,但现在其中一位设计师想要转向使用 Flash Catalyst。
这是我对其工作原理的理解。如果我错了,请告诉我。
- Flash Catalyst 输出一个包含应用程序的 .swf 文件。
- 可以引用外部文件(图像、视频、音频文件),但默认情况下嵌入到 .swf 中。
- Flex 框架存储在 .swz 文件中。这些文件由 Adobe 签名,因此 Flash 认为它们可以安全地存储在与浏览器缓存分开的“闪存缓存”中。这些框架文件可以在任何其他站点上重复使用,从而减少下载时间。
- 如果您没有 .swz 文件,并且查看您网站的人尚未缓存这些文件,则可以从 Adobe 网站下载它们。
如果到目前为止我是对的,那么我的问题是:
我可以将 .swz 文件存储在服务器上的任何位置吗?或者它们是否需要与 .swf 位于同一文件夹中?我认为它们可以在任何地方,但我必须告诉 Flash Catalyst 在哪里寻找它们。
I don't do flash myself: in this company, flash is generally used just for design elements, so the designers build the flash and my job is just getting it onto the site. All fine so far, but now one of the designers wants to move to using Flash Catalyst.
Here's my understanding of how it works. If I'm wrong, please tell me.
- Flash Catalyst outputs one .swf file containing the application.
- External files (images, videos, audio files) may be referenced, but by default are embedded into the .swf.
- The flex framework is stored in .swz files. These files are signed by Adobe and therefore flash considers them safe to store in a "flash cache" separate from the browser cache. These framework files may be reused on any other site, and therefore reduce download times.
- If you don't have the .swz files, and the person viewing your site doesn't already have them cached, they can be downloaded from the Adobe site.
If I'm right so far, here's my question:
Can I have the .swz files stored anywhere on my server, or do they need to be in the same folder as the .swf? I assume they can be anywhere, but I'd have to tell Flash Catalyst where to look for them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
SWZ 文件必须与 SWF 位于同一文件夹中。
我认为您从概念上理解 Flash Catalyst 的工作原理。但是,您应该记住 Flash Catalyst 是一个设计工具。它不允许您与远程数据服务集成。在没有某种形式的后端的情况下构建 Flex 应用程序被认为是极其罕见的。大多数人不会直接从 Flash Catalyst 生成 swf;他们将把 Catalyst 项目导入 Flash Builder 并使“模型/线框”正常工作。
SWZ files must be in the same folder as the SWF.
I think you understand, conceptually, how Flash Catalyst works. However, you should remember that Flash Catalyst is a design tool. It does not allow you to integrate with remote data services. It would be considered extremely rare to build a Flex application without some form of backend. Most people will not be generating swfs directly from Flash Catalyst; they'll be importing the Catalyst project into Flash Builder and making the 'mockup / wireframe' work.