主权财富基金转换为EXE文件 [英] Converting SWFs to EXEs

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

问题描述

我要建在ActionScript 3中的程序,并想将SWF文件转换为EXE不使用Flash Pro的CS5。我发现 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.

推荐答案

Adob​​e AIR的是原生包装SWF应用程序的标准解决方案。 AIR SDK中是免费提供并包括mxmlc编译这将编译。至于到.SWF,和ADT打包打包将您的SWF和资产为Android,iOS的,Windows和OSX。

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.

它看起来像你想<一href="http://help.adobe.com/en_US/air/build/WSfffb011ac560372f709e16db131e43659b9-8000.html#WSfffb011ac560372f-63d4a6d6131f383b813-8000"相对=nofollow>本机捆绑的Windows生成一个可执行。你有一个编程环境?您可能需要检查免费闪存开发的IDE

It looks like you want to bundle natively for Windows to produce an executable. Do you have a programming environment? You may want to check out the free Flash Develop IDE.

嗯,所以在使用Flash开发...好,从不间断。

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

在Flash开发,我创建了一个名为DesktopTest的AIR AS3投影机类型的项目。我再根据我上面张贴的文章修改 Packager.bat 文件。更改输出调用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.

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

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