After further researches, I found that for making android apps with AIR technologies, it requires AIR runtime on the android device, and Flash professional CS5, then, youn can publish your flash project under apk extension, even install it as an android application automatically after publishing it, if you are connecting your device via usb cable, and you are already installed the sdk tools with the usb connector package if you're on windows.
So all of this is great, but, I only have the apk extension of the app, with a file called main.swf, i want to know that if I use the Flash professional cs5 to open the main.swf file, will I be able to modify fields labels for example, and then translate the labels from english to french ?. if not, what is the right way to translate an app made by Flash, when you only have the apk decompiled of the application containing the swf file ?
Thank you for your answers, i'm here if you need any further explainaitions about my situation.
Related
I'm working on bringing a game over from Flash to Android using Air 3.2. The SWF I am testing with is an AS2 SWF.
I used this method to get the SWF file to load: http://www.mikechambers.com/blog/2008/08/18/anyone-using-actionscript-2-to-build-air-applications/#comment-13360
However, when I open the app, the SWF loads, but no code works. Here's the APK so you can see it in action.
Is there like a .SWC or something similar I can include to get the code to work?
Thanks,
-Sandor
What you want simply is not possible on mobile.
On iOS, you cannot load AS bytecode in SWFs prior to AIR 3.6. You must package them at compile-time (loading at runtime is against iTunes Store policies and flat out cannot run) and the code in the embedded SWF is cross-compiled to Objective-C with the rest of the APP.
Because there is no AIR Runtime in an app compiled for iOS (everything is cross-compiled to Objective-C), you cannot load in a SWF with bytecode, even if you do not plan to submit to the iTunes Store. There is no runtime available to actually run it.
The workaround in your link will not work either since there is not and never was a flash player for iOS, which that relies on
On Android, the AIR runtime is AS3-only. There is no support whatsoever for loading AS2; that runtime simply does not exist.
Additionally, the little workaround mentioned in the comments of your link will not work either. That workaround relies on the device having Flash Player installed to run the SWF. Adobe dropped Flash Player for Android a few years ago and no device has been able to install it since then. Odds are only a fraction of a percentage of all Android users still have Flash on their phone.
So there is no way to do what you want. You must convert it to AS3 or not support Android and iOS.
i am a newbie in flash programming. i got a issue with adobe air. As i have done all the things with Air for android. I tested with air in android sdk emulator. everything's working fine but the thing is How to run flash android apps without installing adobe air? Are there any tools or converters available for this. If any please suggest me.
Thanks.
Captive Runtime on Android since AIR 3.0 won't need to have AIR installed as the runtime will be bundled within the app.
If you're using Flash Builder, go through Captive Runtime packaging in Air 3.0.
If not, follow this : Installation and deployment options in Adobe AIR 3
But if you want to use Flex or Flash, you need Air. Otherwise
you can use another cross-platform tool, like Phonegap.
Or if you want small, lean apps, with maximum device compatibility, nothing compares with using Java and the stock Android SDK.
If you're using Flash Professional then go to the steps
go to in publish settings tab and click on Target settings icon
put your general information and go to the Deployment Tab
choose your certificate and fill password then
select radio button of Device release
next is select radio button of Embed AIR runtime with application
if your Device is connected then click the check box of Install application on the connected Android Device.
then Publish It.
Note: this steps is showing in Flash Professional cs5, cs5.5 and cs6 maybe because i am using cs6 so check it first
Enjoy
You can use the captive runtime option, which packs air into the native application package. Other than that, you don't have any other option to deploy your app other than converting it to native Java code.
If you're using FlashDevelop, there's a file called PackageApp.bat in your main app directory. Just run it, and there you can choose to build normal, debug and captive runtime, for android and ios.
I created a app on the platform Adobe AIR for Android, which requires for AIR. The app is very popular in the Android Market, but many users complain of problems with the installation of Adobe Air runtime.
For example these phones users: LGE LG-P698, LG Pecan, HTC Wildfire. But judging by the fact that users have access to the installation of Air, their phones are compatible with it.
Tell me how do I solve the problem?
In addition, I have a few questions:
Decides whether the problem of export application with embedded AIR runtime?
I build my apps with the help of ADT. How in this case to make embeding AIR runtime?
Is it possible to prompt the user to download and install older versions of AIR? Where to find its?
I hope to help, because the problem is global.
Maybe you could use the captive runtime AIR, which bundles the application with AIR. It produces bigger files, but the installation procedure is simpler, also perhaps the combatibility problems will go away.
You can read more ie. here: http://news.ebscer.com/2013/02/why-you-should-use-the-captive-runtime-for-your-android-apps/ or just google for "android air captive"
I made a small game in actionscript 3, tested in device central and it works fine. I would like to know how i can install it on my phone - android htc? Does anyone know how i could achieve this, or know of any tutorials? thanks.
http://gotoandlearn.com/play.php?id=123 and http://gotoandlearn.com/play.php?id=124.
If your Phone processor is 1Ghz, sure you can.
You need to install Adobe AIR 2.7(latest version) in your HTC
Publish your .fla file with the AIR for Android(For this you need not to buy any certificates)For this I recommend Flash professional in CS5.5
Transfer the result .apk file to your device.(If you face trouble sending .apk into your device since android doesn't support transferring .apk files(I am facing this), change the extension of .apk like .jpg(only for testing purpose).
When transferred, change the extension again back to .apk and install.
Thats it, you can run your application in your device.
I have an Adobe AIR desktop application, built in Flex Builder 3, that I want to run on an android device, specifically a Samsung Galaxy Tablet. I have put the application on an emulator, going through the steps of installing AIR on the emulator, packaging the application as an APK, and installing the application on the emulator. However, when I click the application, it does not run.
Here is my question: is this even possible? Can a desktop application be run on a mobile device with no changes to the code, or does it need to be converted to a mobile application before compiling? Thanks for any and all input,
T
So the answer is yes you can deploy that to a mobile device. As far as changes to the code is concerned, the answer is it depends. If it's a simple application, you shouldn't have to change anything.
Since there is no way (from what I understand) to create .apk files in Flex Builder 3, I am assuming you are going through the ADT command line to package it?
And you are following all the steps on
http://help.adobe.com/en_US/air/build/WSfffb011ac560372f-5d0f4f25128cc9cd0cb-7ffb.html
Once we have that covered, other questions would be: Are you using any modules or a framework? Any error messages?
From what I understand, Android doesn't support mx components, so depending on what you are doing there, yes you might have to change the code in order to make it work for Android.
Hopefully that helps.