任何 Flash 编译器都可以将脚本放在多个帧上吗?

发布于 2024-07-14 09:42:44 字数 842 浏览 5 评论 0原文

任何 Flash 编译器都可以将特定脚本放在 Flash 电影 SWF 的特定上吗?

就像您在 Flash IDE 中所做的那样,只需使用时间轴面板将脚本放置在所需的帧上,脚本就会被编译到 Flash 影片 SWF 的该帧。

例如。 第 1 帧上的脚本:

trace("Reached frame 1");

例如。 第 2 帧上的脚本:

trace("Reached frame 2");

SWF 编译器: (Hopefuls)

Can any Flash compiler put specific scripts on specific frames of the Flash movie SWF?

Like you can do from within the Flash IDE, just place a script on the required frame using the Timeline panel, and the script gets compiled to that frame of the Flash movie SWF.

Eg. script on frame 1 :

trace("Reached frame 1");

Eg. script on frame 2 :

trace("Reached frame 2");

SWF Compilers: (Hopefuls)

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

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

发布评论

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

评论(6

久而酒知 2024-07-21 09:42:44

使用 MXMLC 是可能的,尽管它没有很好的文档记录。

Google 搜索 Flex Frame 元数据将向您显示代码。 经过一些尝试和错误,你应该能够让一些东西发挥作用。 (这就是flex预加载器的工作原理)

It's possible with the MXMLC, though it not very well documented.

A Google Search for Flex Frame Metadata will show you the code. A little trial and error and you should be able to get something working. (This is how the flex preloader works)

[浮城] 2024-07-21 09:42:44

据我所知,您提到的编译器都没有管理基于时间线的执行。 但是 swfmill 可能会有所帮助。 我建议您编译自己的二进制文件,因为预编译的二进制文件非常过时并且缺乏重要的修复。

As far as I know, none of the compilers you mentioned manages a timeline based execution. But swfmill may help here. I advise you to compile your own binaries because the precompiled binaries are pretty outdated and lacks important fixes.

女中豪杰 2024-07-21 09:42:44

MTASC 和 Haxe 都允许您将代码“注入”到现有 swf 的特定框架中。 通常的过程是使用 SWFMill 创建一个包含所有资源的 swf 库。 之后,您将使用任一编译器的代码注入到该 swf 中,从而生成一个新的 swf。

将代码注入到第 1 帧中后,下一步尝试将代码注入到第 2 帧中。 理论上这应该有效。 我自己还没有尝试过,所以你可能想尝试一下。

Both MTASC and Haxe let you 'inject' code into a specific frame of an existing swf. The usual process is to create a library swf using SWFMill that contains all your assets. After that you inject your code with either one of the compilers into that swf resulting in a new swf.

After injecting code into frame 1, try also injecting code into frame 2 as a next step. In theory this should work. I haven't tried this myself so you might want to experiment with this.

心清如水 2024-07-21 09:42:44

有一个 haxe 编写的 neko 小工具,可让您构建多个帧 swf:
http://gamehaxe.com/2009 /02/04/haxe-preloader-for-flash-writing-in-haxe/

There is a small haxe written neko tool that allows you build multiple frame swfs:
http://gamehaxe.com/2009/02/04/haxe-preloader-for-flash-written-in-haxe/

┊风居住的梦幻卍 2024-07-21 09:42:44

也许您还可以查看未记录的函数

addFrameScript(frameNumber,function,frameNumber,function...)

maybe you can also have a look at the undocumented function

addFrameScript(frameNumber,function,frameNumber,function...)

秋日私语 2024-07-21 09:42:44

在 FLEX sdk 中使用开源的 ASC 怎么样?
您可以使用它进行编译,然后将生成的 abc 封装到 DoAbc 标记中,并使用任何处理 swf 文件格式的库放入所需的框架中。

what about using ASC opensourced in FLEX sdk,
you could use it for compilation and then envelope the resulting abc into DoAbc tag and put into desired frame with any library that handles swf file format.

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