I did few speed checks and looks like compiler in flash professional doesn't do optimizations. I am using flash professional cs5.5. Is there a way in flash professional to turn on compiler optimizations?
Do you mean option version between release and debugging version in Flash Professional?
Adobe offical note:
When compiling your project in Flash Professional, you do not have the option of choosing between release and debugging version. The compiled SWF file is a release version by default.
Adobe link
Hope useful to you. :)
Related
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.
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:
Download 11.2.202.235 Flash Player vesrion
Open flashplayer_11_sa_32bit.exe
Open swf file with this FP or drag and drop swf on player
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
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.
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
Get MDM Zinc. It has everything you need for crossplatform flash development.
I'm working on an app that will run on desktops and mobile devices. I have Flash Professional CS5. However, I am working on a project that really just needs AS3, and dealing with the complications of integrating AS3 with Flash has already taken a fair amount of time.
There's a link that says "Free, open-source framework | Adobe Flex". When I click on it it takes me to a page with Flash Builder 4.7 Premium for $700. I'd rather have something free...
Adobe's Flex SDK, Apache's Flex SDK, and Adobe's AIR SDK include mxmlc compilers. They can all be downloaded free of charge. These compile .as code into .swf binaries. The AIR SDK has the latest compiler from Adobe.
flashdevelop.org is a free IDE (that downloads one of the above to compile, and sets up your environment automatically). Similarly, Flash Builder is a paid IDE from Adobe.
Take your pick. I like to use Adobe AIR SDK under wine on Linux, personally. =)
I am not a Flash/ActionScript developer but I need to achieve a very small task in Flash. I need to display user audio input level in Flash. I found that I can do that using ActionScript (according to this).
I have no idea what tools I need to use and generate a SWF file.
Any help highly appreciated.
You can use the Flash Pro IDE (eg Flash CS6), Flash Builder (Adobe), or FlashDevelop. There are also a few more like FDT and IntelliJ.
If this is a quick and dirty no/low budget scenario for you, I would recommend FlashDevelop.
If speed is of the utmost importance and you don't have time to learn, then Flash Pro CS~ would be a good bet.
If you're an experienced coder and will be using the tool a fair bit, Flash Builder (as a commercial product) is a good bet. Though FlashDevelop is also a good open source alternative to Flash Builder.
They all have tutorials on their websites on how to get your environment setup and start creating swfs.
http://www.flashdevelop.org/
http://www.adobe.com/products/flash-builder.html
http://www.adobe.com/products/flash.html
http://fdt.powerflasher.com/
http://www.jetbrains.com/idea/
Is it possible that an adobe air application that runs fine with an older installed AIR runtime stops working or works buggy if it is installed on a system that has a newer version of the runtime installed?
I know by concept this should not be the case - but how is it really?
Yes, this is the case in some applications.
For example, the updater classes broke in my application LinkFinderPro when they released AIR 2.7.
I haven't seen it anywhere else, really, but I had to mention this case.
I don't know if there is some official statement from Adobe about this but I can talk to you from my own experience:
As far as I know, Adobe runtimes, both the Flash Player and Air, have always been retrocompatible and have not had issues like the ones you describe.
Are there any custom libraries available that allow me to code/publish in CS3 using some of the features of CS4?
EDIT:
I say "some", because I understand that it is obviously nearly impossible to reimplememnt CS4 in CS3.
There is no difference between CS3 and CS4 in terms of code. You just need to target the current Flash Player 10 platform in your publish settings. They are both using the same Actionscript 3 libraries.
You can't load a CS4 project in CS3, but you can save your project to be CS3 compatible inside of flash CS4.
Oh, my bad. It's true CS3 can not compile for the Flash 10 platform. Therefore, no. There is no library, because the changes all require the new benefits of the Flash Player 10.
You can however use flex to compile your code. This will however require you to convert your code to flex.
You shouldnt be able to run anything in CS3 that is CS4 compliant only, mainly because it should require flash player 10 to run the code correctly, which you cant compile for in CS3.