Flash AS2 命令行编译器功能

发布于 2024-07-10 18:40:03 字数 979 浏览 8 评论 0原文

虽然MTASC命令行编译器可以编译ActionScript 类文件转换为 SWF ,我需要通过命令行开关具体了解其功能。

-version n :指定 SWF 版本:6 生成 Player 6r89 兼容的 SWF 或 8 以访问 Flash8 功能。

  • 配置电影的哪个包含所有代码。

-frame f :将导出 AS2 类到 swf 的目标框架中。


  • 但是我如何配置电影的哪些,包含哪些ActionScript代码?
  • 换句话说,将 A 类放入 Flash 影片的第 1 帧,将 B 类放入第 2 帧,将C 类放入 Flash 影片的第 3 帧。

Although the MTASC command-line compiler can compile ActionScript class files into an SWF, I need specific insights into its capabilities, via the command-line switches.

  • Configure which Flash Player version you're targeting, 6 / 7 / 8

-version n : specify SWF version : 6
to generate Player 6r89 compatible SWF
or 8 to access Flash8 features.

  • Configure which single frame of the movie, contains all the code.

-frame f : will export AS2
classes into target frame of swf.


  • But how do I configure what frames of the movie, contain what ActionScript code??
  • In other words, put class A into frame 1, class B into frame 2, class C into frame 3 of the flash movie.

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

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

发布评论

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

评论(2

寒江雪… 2024-07-17 18:40:03

据我所知,您无法指定哪些类进入哪些框架。 但是,您可以指定一个将导出所有类代码的框架。 由于 SWF 格式是一种流格式(逐帧下载),因此您可以导出第 2 帧中的所有类。如果您将代码放置在基本上以 stop(); 开头的帧 1 中, > 然后您将进入一个循环来测量加载了多少 SWF,您可以在第一帧上创建一个 SWF 预加载器。

您还可以查看 swfmill,它可以让您布局 SWF 框架并导入资源。 您可以使用 MTASC 将代码注入到 swfmill 生成的 SWF 中。

As far as I'm aware you can't specify what classes go into what frames. You can however designate a frame where all class code will be exported. Since the SWF format is a steaming format (it's downloaded frame by frame) you could e.g. export all your classes in frame 2. If you would then place code in frame 1 that basically starts with a stop(); and you then would then go into a loop the measure how much of the SWF is loaded, you can create a SWF preloader on frame one.

You also might what to have a look at swfmill that lets you layout the frames of your SWF and import assets. You can use MTASC to inject code into a swfmill generated SWF.

梦归所梦 2024-07-17 18:40:03

使用 AS2,您的所有代码都将导入到同一个框架中,您可以选择哪个框架。

然而,对于 AS3,在根上导入的代码会进入框架 1,而随形状导入的代码会进入形状的框架。

With AS2 all your code is going to be imported into the same frame, you can choose which frame that will be.

With AS3 however, the code imported on the root goes into frame 1 and code imported with shapes goes into the shape's frame.

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