How to check Flash Player is installed from Adobe Air application? - actionscript-3

I have an AIR application that needs check if the Flash Player is installed on Windows. I tried check through Capabilities.version method, but it's doesn't solve...
trace(Capabilities.version); // shows Adobe AIR version
I tried to use the HTMLLoader.swfCapability, but for some reason it doesn't work... Always shows installed...
trace(HTMLLoader.swfCapability == HTMLSWFCapability.STATUS_OK); // always true
How can I detect if the Flash Player is installed on the PC from my AIR application?

Related

Flash Builder can't find PPAPI flash debugger

I was able to get flash builder to work with the NPAPI version of the debugger, but I have installed chrome 64-bit (v 38.0.2125.101), which seems to only work with the PPAPI version found here. With that version installed I am back to this error message:
C:\Program Files (x86)\Google\Chrome\Application\plugins\NPSWF32.dll
Flash Builder cannot locate the required version of Adobe Flash Player. You might need to install the Flash Player or reinstall Flash Builder.
Do you want to try to run your application with the current version?
That directory doesn't exist, and it doesn't look like it ever did, so I have no idea why Flash Builder is looking there, or how to tell it to look elsewhere.

Flash Builder trying to use wrong player

When trying to run or debug in Flash Builder, I get the following error:
C:\Program Files (x86)\Google\Chrome\Application\plugins\NPSWF32.dll
Flash Builder cannot locate the required version of Adobe Flash Player. You might need to install the Flash Player or reinstall Flash Builder.
Do you want to try to run your application with the current version?
I've checked the setting in preferences > flash builder > debug and it is pointing to
C:\Program Files\Adobe\Adobe Flash Builder 4.7 (64 Bit)\player\win\11.4\FlashPlayerDebugger.exe
Yet as you can see from the previous message Flash Builder is still trying to use the chrome version of flash player. How do I actually change this setting to use the right version?
Solved this by installing the plugin version of the debugger (for netscape compatible browsers) found here. I then had to go to chrome://plugins/ and disable the pepflashplayer.dll version of the player. Apparently chrome comes with the standard version of flash player preinstalled, and I guess flash builder was trying to use that.
Open the property of current project(e.g. HelloWorld), and go to Run/Debug Settings, double click the project, uncheck the "Use default" and choose "HelloWorld.swf", not "HelloWorld.html".
Updated fix:
Download and install the Active-X flash player debugger.
Test in Flashbuilder by setting your default browser to IE.
Download the Opera and Chromium debugger and install.
Now the Flashbuilder debugger should work with Chrome, also.
I discovered this by accident but I have tried it on two separate installs of FlashBuilder 4.6 and the debugger works in Chrome and IE.

adobe air apk won't run on android 4.4.2

I have a android 4.1.2 device and my adobe air as3 apk runs on it. I also have a 4.4.2 device, and the apk doesn't run on that one. I am having a tough time finding out what's wrong, though. Has anyone found this problem too? I would love ddms output, like I am used to from eclipse, but I don't know how to start.
I've googled a little, but the problem seems to be mine alone. I am using Flash CS6 on a windows install as my development environment. Also, the AIR version on CS6 is 3.4.
Any help would be appreciated. I am using a captive runtime.
It's because of the old AIR version. Here's a link saying that the 'new' 3.9 now supports KitKat (Android 4.4.2): http://news.softpedia.com/news/Adobe-Air-with-Android-4-4-KitKat-Support-Out-Now-on-Google-Play-417056.shtml
Try updating your SDK AND your AIR on the phone.
here is the link to download latest air version
http://helpx.adobe.com/air/kb/archived-air-sdk-version.html
-open flash > help > manage air sdk > you can remove add new air here

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...

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.