Flash导出/发布时间

发布于 2024-07-06 09:49:20 字数 347 浏览 11 评论 0原文

将简单的 Flash 影片导出为 swf 的时间过长的主要原因是什么? 我没有不必要的图像或符号,所有可能的设置都低于低值,但仍然需要 10 分钟及以上才能以 24 fps 导出 30 秒的动画。 我什至创建了一个新的 fla 并将所有内容粘贴到其中,以查明它是否可能只是 Flash 中的一个错误。 我导出的所有其他动画都需要正常的时间。

系统规格: 1GB DDR2 内存 Intel Pentium D 3.4GHz

我应该升级我的系统吗?

这是否与符号中包含许多符号有关?

编辑:fla 的文件大小为 1.3 MB,swf 的文件大小为 500 KB。 所以不要太大。

What are the main reasons for having ridiculously long export times for a simple flash movie to swf? I have no unnecessary images or symbols, everything possible is set to lower than low and it still takes 10 minutes and upwards to export a 30 second animation at 24 fps. I have even created a new fla and pasted everything in there, to find out if it isn't maybe just a bug in flash. All other animations I've exported take a normal amount of time.

System specifications:
1GB DDR2 RAM
Intel Pentium D 3.4GHz

Should I upgrade my system?

Could it have something to do with having many symbols within symbols?

EDIT: Filesize of fla is 1.3 MB and swf is 500 KB. So not too big.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

颜漓半夏 2024-07-13 09:49:20

这对于 Flash 来说并不是平均水平。 通常,导出时间过长的唯一原因是您导出了很多东西,其中一些东西您可能并不打算导出。

你的动画有音频吗? 如果您将音频导入到 FLA 中,则每次导出时都必须对该声音进行编码,这需要一段时间。 处理此问题的最佳方法是在发布设置中将音频压缩设置为“原始”。 这将发布未压缩的音频,因此会增加文件大小,但会立即发布。 (当然,当您准备导出成品时,您需要将设置恢复为最终导出的压缩格式。)或者,您可以将音频放入单独的文件(SWF、MP3 等)中,然后在运行时加载它。

另一个常见的错误是不小心嵌入了大字体。 如果您有使用嵌入字体的动态文本字段,则可以嵌入整个字体,对于 unicode 字体,这可能需要几分钟的时间。 检查您是否正在执行类似的操作很容易 - 在发布设置中,打开“生成尺寸报告”。 然后导出,并检查大小报告中是否有任何您不想导出的大块内容。

在不知道您要导出哪种内容的情况下,很难说更多,但如果您有一个内容的导出时间比类似内容的导出时间长得多,那么原因可能是这样的。

This is not average for Flash. Normally, the only cause for long export times is that you're exporting a lot of stuff, some of which you may not mean to be exporting.

Does your animation have audio? If you imported audio into your FLA, then that sound has to be encoded every time you export, and that takes a while. The best way to deal with this is, in publish settings, set your audio compression to "Raw". This will publish the audio uncompressed, so it will increase the file size but publish instantly. (Of course when you are ready to export the finished product, you'll want to return the settings to a compressed format for the final export.) Alternately, you can put the audio in a separate file (SWF, MP3, etc) and load it at runtime.

Another common mistake is to accidentally embed a large font. If you have dynamic text fields using embedded fonts, it's possible to embed an entire font, which for unicode fonts can take several minutes. It's easy to check if you're doing something like this - in publish settings, turn on "generate size report". Then export, and check the size report for any large pieces of content that you didn't mean to be exporting.

It's hard to say more without knowing what kind of content you're exporting, but if you have one piece of content that takes much longer to export than similar pieces of content, then the cause is probably something along these lines.

人间☆小暴躁 2024-07-13 09:49:20

要解决这个问题,您应该始终尝试做的第一件事是非常简单的,尽管没有任何人真正记录下来。

文件-> 保存并压缩

您的电影可能会因各种不再需要但仍保留在 .FLA 文件中的残旧和剩余库元素而变得越来越大,这会减慢您的导出速度。 该命令强制 Flash 从本质上重建您的 FLA 并消除所有这些“脂肪”。

当然,这并不能解决所有问题,即使运行后您可能仍然会遇到其他问题。 但如果您想减少 SWF 文件大小或导出时间,这是第一步,人们应该注意这一点。

The first thing you should always try to do to solve this problem is a very simple one, though it's not really documented anyone.

File -> Save and Compact

Your movies can bloat larger and larger with various cruft and leftover library elements that are no longer needed, but still kept in the .FLA file, and which can slow down your export. This command forces Flash to essentially rebuild your FLA and get rid of all this "fat."

Of course this isn't a fix-all, you may still have other problems even after running this. But if you want to cut down on SWF filesize OR export time, this is the first step, and one that people should be aware of.

我不吻晚风 2024-07-13 09:49:20

不幸的是,这对于闪光灯来说相当平均。

您可以在 actionscript.org 上查看这篇文章,其中讨论了拆分启动您的项目,从而节省编译时间。

早在 AS2 时代,就有一个名为 MTASC 的开源编译器,它极大地减少了 编译时间。 它后来变成了 Haxe,AS2、AS3、Javascript、PHP 和 Neko 虚拟机都使用相同的语法。 使用的语法与 C++ 类似。

** 编辑 **
抱歉,我上面的内容是 10 秒,而不是 10 分钟……抱歉。 ^_^

unfortunately this is pretty average with flash.

You can check out this post on actionscript.org which talks about splitting up your project so save on compile time.

Back in the AS2 days an open source compiler called MTASC which dramatically reduced the compile time. It has since turned into Haxe with AS2, AS3, Javascript, PHP, and Neko virtual machine all using the same syntax. The syntax used is similar to C++.

** EDIT **
Sorry I read the above as 10 seconds, not 10 minutes... sorry. ^_^

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文