How do you do a mxmlc.exe compilation to *.exe and *.app? - actionscript-3

I have to create an ActionScript 3 project in Flash Builder, and compile with mxmlc.exe, but the output has to be a .exe file for Windows, and also, an .app Macintosh Projector file for Mac.
Does anybody know how to achieve this?

I don't know about an automated way to achieve this, but you can create you exe/app by opening the swf in the standalone flash player and choosing File > Create Projector...

You could also use Adobe AIR to make an air app that would be "installable" on Win / Mac and even Linux

Here's what we did, compiled the SWF using mxmlc.exe, then opened the files in Flash Player on Mac and PC respectively, and clicked Create Projector on the menu.
Works a charm!

Related

Is there any modern way to do games with ActionScript?

I know it is possible to develop games with ActionScript. My question is:
Is there any way to generate a game like "Unity" does, with Adobe tools, without ask the user to install 3rd party plugins (Flash Player, Adobe Air)?
I would like to do a game with ActionScript, for mobile platforms, without the inconvenience of installing third party plugins. Is it possible?
How are made games like Clash Royale?
Appreciate.
You can export your Adobe AIR projects as standalone executable files, for example:
For Android you can export your app with the Captive Runtime, it will generate an APK ready to install. This APK won't require Adobe AIR installed on the user's device.
For iOS, AIR always exports the IPA with Captive Runtime, you don't have to worry about this platform.
For Windows, you can export an .exe file (only when you are using the AIR SDK for Windows).
For OSX, you can export an .app file or a .dmg file (only when you are using the AIR SDK for OSX).
If you want to export for all 4 platforms I recommend to code and design on a Mac, so you can export the .app/.dmg, .apk and .ipa binaries, and use a VM or a cheap Windows computer for compiling your .exe file.

How to install ANE Air Native Extension at runtime?

Is any way to install and use ane extension from external module/swf.
As far i know, that extension files(ddl etc) is installed with native installer.
Is any way to install them in runtime, for example when external swf is loaded?
On mobile: no - all code needs to be there at compile-time; you can't load any external code at runtime (through a SWF or ANE).
On desktop, it might be possible, as an ANE is essentially a SWC with some magic, but in that case, it would be easier to just use the SWC/SWF directly.

Build actionscript 3 project to exe

As simple as the title,
I want my project to run from an executable file rather than an swf
I know about the 'create projector' option but the latest flash player has this option grayed out.
I use flash develop if it matters
Thanks in advance
As Flextras mentioned in the comments you can distribute your AIR app as an exe+dmg by packaging it as a captive runtime.
This will bundle the AIR runtime alongside your app and will not require the user to have anything else installed. Everything needed will be contained in the application binary.
You can use adt to build your exe,
http://www.tricedesigns.com/2011/08/10/air-3-0-captive-runtime/
adt -package SIGNING_OPTIONS? -target bundle SIGNING_OPTIONS? <output-package> ( <app-desc> FILE-OPTIONS | <input-package> )
More info,
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f709e16db131e43659b9-8000.html
You can also build it right from Flash Builder 4.6+
http://houseofbilz.com/archives/2011/10/11/captive-runtime-packaging-in-air-3-0/
If you do have dependencies you can also package your AIR app as a native desktop installer,
http://help.adobe.com/en_US/air/build/WS789ea67d3e73a8b22388411123785d839c-8000.html
http://www.adobe.com/devnet/air/articles/air3-install-and-deployment-options.html#articlecontentAdobe_numberedheader
If you run your .swf file using Flash Player 10.1, you can find Create Projector option still available. It looks like Adobe wants all the desktop applications to use AIR SDK and thus this option to Create Projector is greyed out. I am still stuck with fp 10.1 because of this.
Projector Export (Flash CC)
Projectors are Flash files that contain both the published SWF and Flash Player. Projectors can play like an ordinary application, without the need for a web browser, the Flash Player plugin, or Adobe AIR.
About this Extension:
Projectors were deprecated from Flash Pro CC, however, using this Extension you can now publish your Flash content from Flash Pro CC as a standalone application.
The exported Projector from Flash CC will be an .EXE file on windows and an .APP file on Mac, that can be played on any Windows and Mac machines respectively even without an installed Flash Player or plug-in.
How to Install:
Download the ZXP extension file and install it via the Extension Manager CC. (You must have Flash Pro CC installed on your system before using this extension)
How to Use:
Open the Fla file in Flash Pro CC that you wish to export as a projector.
Navigate to Commands Menu -> Export as Projector
Choose the location for saving your projector and click on ‘Select Folder’.
Download here:
https://nipunasthana.wordpress.com/projectorforflashcc
open swf file with flash player
file -> create projector
so easy...

How to run QNX Actionscript project on desktop Flash player

I am trying to run QNX Actionscript project on desktop Flash player, but when I run the swf, the player appears blank white view
I tried to set the QNX libraries "Merged in code", but the app doesn't run
Is there any way to run the project swf on flash player
Note: I am using Flash Builder 4.5
Thanks a lot
Have you tried the http://www.patrick-heinzelmann.de/labs/playbookdevicesimulation/ ?
And there is also:
http://renaun.com/blog/2011/02/workaround-for-ppschannel-error-when-running-qnx-playbook-specific-apis-on-the-desktop/

Is there a way to publish a AS3 based Flash projector that will run on a PowerPC Mac?

I'm using AS3 to author my project. I tried to publish as Flash Player 9 and this didn't work. I can't go down to Flash Player 8 because that predates AS3.
You can open your SWF in the Flash Player on your PowerPC, then save as projector. The project has to be exported to run with the same Flash version, though - perhaps you have to use a different SDK?
If it isn't possible to target Flash 9 with your current version, try the Flex 3 SDK. You can download it for free and run the compiler using a build tool like Ant, Maven, Gradle, etc., from your IDE (FlashDevelop, FlashBuilder, FDT, etc.) or directly from the command line / prompt.