将 SWF 转换为 EXE [英] Converting SWFs to EXEs

查看:29
本文介绍了将 SWF 转换为 EXE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用 Actionscript 3 构建一个程序,并且想在不使用 Flash Pro CS5 的情况下将 .SWF 文件转换为 EXE.我找到了 http://swf-to-exe.com/ 并且运行良好,但我我想知道是否有另一种方法可以做到这一点.从长远来看,我们也需要 Mac 可执行文件,如果我可以避免将其全部放在 Flash 中,我希望这样做.

I'm building a program in Actionscript 3 and would like to convert the .SWF file to an EXE without using Flash Pro CS5. I found http://swf-to-exe.com/ and it works well, but I'm wondering if there is another way to do this. In the long run we'll need Mac executables, too, and if I can avoid putting it all in Flash I'd like to do that.

推荐答案

Adobe AIR 是原生打包 SWF 应用程序的标准解决方案.AIR SDK 是免费提供,包括 mxmlc 编译器,它将将 .as 编译为 .swf,adt 打包程序将为 Android、iOS、Windows 和 OSX 打包您的 SWF 和资产.

Adobe AIR is the standard solution for packaging SWF applications natively. The AIR SDK is freely available and includes the mxmlc compiler which will compile .as to .swf, and the adt packager will package your SWF and assets for Android, iOS, Windows, and OSX.

您似乎想要Flash 开发 IDE.

啊,所以您正在使用 Flash Develop... 很好,继续.

Ah, so you are using Flash Develop... Good, onward.

在 Flash Develop 中,我创建了一个名为 DesktopTest 的AIR AS3 Projector"类型项目.然后我根据上面发布的文章修改了 Packager.bat 文件.更改 OUTPUTcall adt 行并保留文件的其他行:

In Flash Develop, I created an "AIR AS3 Projector" type project named DesktopTest. I then modified the Packager.bat file according to the article I posted above. Change the OUTPUT and call adt lines and leave the other lines of the file in-tact:

set OUTPUT=-target bundle %AIR_NAME%

还有:

call adt -package %OPTIONS% %SIGNING_OPTIONS% %OUTPUT% %APP_XML% %FILE_OR_DIR%

然后您需要运行一次CreateCertificate.bat(右键单击,执行).之后,编译您的项目并运行 PackageApp.bat.对于我的名为 DesktopTest 的项目,这会生成一个 DesktopTest 子目录,该子目录是我编译的应用程序,其中包含一个 DesktopTest.exe.

You then need to run CreateCertificate.bat once (right-click, execute). After that, compile your project and run PackageApp.bat. For my project named DesktopTest, this results in a DesktopTest sub directory that is my compiled app, with a DesktopTest.exe in it.

这篇关于将 SWF 转换为 EXE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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