Converting SWFs to EXEs

前端 未结 4 1613
感情败类
感情败类 2021-01-15 21:58

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, b

相关标签:
4条回答
  • 2021-01-15 22:13

    SWF converted to EXE is most likely a projector file, it still needs a Flash Player. Depending on build it could have the FP compiled into itself and thus don't need a Flash Player externally, but it comes with a cost or larger file-size.

    Now with AIR, you have a choice to make a Flash project that will run natively trough the AIR virtual machine (that can be included for compilation time, so the user doesn't need to install it separately). But still, there WILL be a SWF file in that EXE or APP package.

    Good thing about AIR - it works universally on both Win and Mac. Mobile platforms are also supported.

    You can build AIR projects without buying Flash Professional, CC or Flash Builder. Just download the SDK and compile your code.

    If you're using Windows, you can do it very easily with FlashDevelop - it's a powerful IDE that works out of the box. And it's free too!

    http://www.flashdevelop.org

    0 讨论(0)
  • 2021-01-15 22:21

    Get MDM Zinc. It has everything you need for crossplatform flash development.

    enter image description here

    0 讨论(0)
  • 2021-01-15 22:25

    The most simple way is to create projector file with Flash Player, but you have to do it for every OS. It embed the hole Flash Player into the resulting *.exe file.

    Steps for exe:

    1. Download 11.2.202.235 Flash Player vesrion
    2. Open flashplayer_11_sa_32bit.exe
    3. Open swf file with this FP or drag and drop swf on player
    4. File->create projector

    As I know the last FP version, where projector feature works is 11.2.202.235, for Mac it can be another version. There is the description of this #Bug 3363321 in Adobe bugbase

    0 讨论(0)
  • 2021-01-15 22:28

    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.

    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.

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

    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%
    

    And:

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

    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.

    0 讨论(0)
提交回复
热议问题