How to update a application without installing new apk, any option like changing swf file and xml file,using adobe air as3.
Related
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...
I am loading external swf that contain checkbox on the stage.
but when I try to load that swf I get an error "Class fl.controls::CheckBox could not be found."
I build the application with pure as3 in flash builder 4
and the external swf made by flash pro cs4
Thanks,
fl.controls namespace is a part of Flash Pro.
To integrate with Flash Builder, you can either add the package by SWC or via code:
Adding Flash Components to Flash Builder:
Adding by SWC:
Right-click on your project in Flash Builder, and go to Properties.
Select "ActionScript Build Path" from the left.
Go to the "Libary path" tab now available on the right.
Click "Add SWC..."
Add libs from Flash such as flash.swc or IK, depending on what version of the Flash IDE you have and where you installed it.
Windows:
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\libs\flash.swc
Mac OS X:
/Applications/Adobe Flash CS5/Common/Configuration/ActionScript 3.0/libs/flash.swc
Adding by source folder:
Right-click on your project in Flash Builder, and go to Properties.
Select "ActionScript Build Path" from the left.
Go to the "Source path" tab now available on the right.
Click "Add Folder..."
The Flash components should be in a location with a path similar to the following, depending on what version of the Flash IDE you have and where you installed it.
Windows:
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface
Mac OS X:
/Applications/Adobe Flash CS5.5/Common/Configuration/Component Source/ActionScript 3.0/User Interface
I'm using ActionScript 3. Developing in FlashDevelop. I get the following error when I try to do import fl.controls.Label;
Definition fl.controls:Label could not be found.
I'm pretty new to Flash. I had this project working without a glitch. I must have changed something for it to stop recognizing the import. Even Intellisense gives me an option to add fl.controls.Label
Controls in the fl.controls namespace are native to Flash Professional.
Although I don't use Flash Develop, this is similar to Flash Builder.
If you had Flash Pro you could create a library of components, then export a SWC library for use in your Flash Develop project. Or, reference Flash Pro's controls.
If this previously worked in your project, perhaps your compiler settings no longer link a required SWC dependency?
Not sure if this will help, but I would follow this in Flash Builder:
Flash Components:
Adding by SWC:
Right-click on your project in Flash Builder, and go to Properties.
Select "ActionScript Build Path" from the left.
Go to the "Libary path" tab now available on the right.
Click "Add SWC..."
Add libs from Flash such as flash.swc or IK, depending on what version of the Flash IDE you have and where you installed it.
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\libs\flash.swc
Adding by source folder:
Right-click on your project in Flash Builder, and go to Properties.
Select "ActionScript Build Path" from the left.
Go to the "Source path" tab now available on the right.
Click "Add Folder..."
The Flash components should be in a location with a path similar to the following, depending on what version of the Flash IDE you have and where you installed it.
C:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Component Source\ActionScript 3.0\User Interface
...or...
C:\Program Files\Adobe\Adobe Flash CS5\Common\Configuration\Component Source\ActionScript 3.0\User Interface
Default playerglobal namespace.
Default package / playerglobal.swc reference often is incorrect when editing from Flash in Flash Builder.
In .actionScriptProperties, add:
<libraryPathEntry kind="3" linkType="1" path="${FLASHPRO_APPCONFIG}/ActionScript 3.0/FP10.2/playerglobal.swc" useDefaultLinkType="false"/>
If you need general fl.* libraries, copy this swc:
/Applications/Adobe Flash CS6/Common/Configuration/ActionScript 3.0/libs/flash.swc
Into your Flash Builder project using these steps:
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.
My game works with no error when i control+enter my fla file in air 2.6 player. my problem occurs when i open my swf file.
My swf file keeps iterating through timeline. i have used stop(); function in every timeframe. this problem is not seen when i control+enter my fla.
I'm sorry if my question sounds stupid, but I'm really new to as3.
This is because you have opened the swf file, and not the .exe file genereated after you publish the air app. Publish the application, and then install it. After this you should be able to run it by opening the .exe file.
When you debug an air application, the swf file is not run in the flash player, rather it is run in the Air Debug Launcher. This program also reads the other files associated with your application, namely the ...-app.xml file.