I have a .fla game and your respective .swf, I want to convert the swf to run on a Android Tablet or smartphone, I took a look on some answers, but I can't find an actual way to build the swf to Android using Adobe Flash CS5 professional, What I need to do ? I have de Android SDK, but don't have any idea, I saw that can be made with Adobe Air, but I dont understood =/
Sorry, I'm newbie on Android Devices.
Thanks.
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 trying to build an application where the webview should handle flash contents.
As most of us are aware of, Adobe has announced it will not support Flash Player browser plugin for Android 4.1 and onward.
Without installing Flash, is it possible to realize it?
I did my part of researches and came along with Captive Runtime where you can have the flash package inside your application, without the need to install flash.
My question is, is it possible to build an android app without using Flash Builder, and have the flash package inside?
Is Adobe Air the only solution in my case?
Thanks in advance!
Adobe AIR is the one and only hope. You don't need FLASH here in this context. Make sure you have the Flash Builder 4.6 to build the application, test it with the inbuilt emulator to see how it all goes.
I have developed a game in flash now i want to run that flash file in android os.
i have followed several questions here but unable to get the solution please help me
App developed in AS3 can be run in Adobe AIR environment. You need Adobe AIR on your device and I suppose that an app needs to be optimized for AIR.
Of course you can also run it in browser if you have flash player, but it will have really bad user experience.
I wanted to know if it is possible to do the following:
Build a mobile app using HTML5, CSS, and JavaScript
Embed a Flash game (SWF) on one of the pages of the application
Wrap with PhoneGap, and deploy on Android an iOS
Keep the Flash game's functionality
I am considering doing this for an upcoming mobile project, and considering my options. I can build in all Flash, or I can build using HTML5 and just embed the Flash on one page. HTML5 would be much faster and cost-effective, and could accomplish what I need for the app's UI and everything else. The thing is that I need to incorporate this Flash game into the site. Will that mean that I have to build the entire application in Flash in order to accomplish this?
Thanks
Are you the last person on Earth to hear that Flash doesn't work on iOS?
Well, I have news for you: Flash doesn't work on iOS ;-)
You can use Adobe's CS5 tools to compile your Flash game as a native iOS app (which is probably your best bet if you're determined to go the Flash route) but you can't display a SWF on an iPhone, regardless of how it is embedded.
Embedding the SWF using PhoneGap may be a semi-viable solution on Android (at least for some handset models), but the performance is unlikely to be that great, and since Adobe have officially abandoned Flash on the mobile, making Flash games for Android is not a very future-proof strategy at this point.
You'd be better off trying to create your game using a pure HTML5 game development library such as ImpactJS - the tools are not quite as rich as what you get with Adobe, but the cross-platform support and future outlook is much better.
Here's a nice table of different cross-platform JS game engine solutions that somebody put together: https://github.com/bebraw/jswiki/wiki/Game-Engines
For simple animations You can also convert flash to HTML 5 (with Abobe tools , form google html5 convert dosen't ) and than put it in web view any platform Windows Phone, Win store.....
html 5 will work even without cordoba or phone gap
i have asked this question before but the answer received was not applicable in my situation. I searched the net and still unable to find anything. I have a game in flash actionscript 3.0 and i would like to put it on my htc hero - android phone. Are there any tutorials that state on how to do this please?
thanks.
You can do it using Flash CS5. There is an option to start a new "AIR for Android" project. You can use the code from your existing game. You may have to tweak parts of an existing game because mobile devices are less powerfull, and have different inputs like touchscreens, virtual keyboards and menu buttons.
Generally speaking, you want to make a standalone apk using the Adobe Air paradigm (i.e. you do not put a .swf on the device).
http://www.adobe.com/products/air/sdk/
http://www.adobe.com/devnet/devices.html
Adobe will be rolling Android support into Flash (using the Air paradigm) starting with CS5.5 to be released in Q2 2011; the public beta they released in November 2010 (for CS5) is no longer available: http://labs.adobe.com/technologies/flashpro_extensionforair/
No tutorials come to mind. If I were to search Google, my luck would probably be as good as yours.
I have been recently writing a mobile application using Adobe's Preview of Flash Builder Burrito. There is a project creation option in there to create an Action Script Mobile Application which is exactly perfect for what you are asking in your question.
I assume that the Actionscript game is written by you so you will have no problem moving it into the project created by Flash Builder Burrito.
In fact, I think Adobe just released the final version of Flash Builder Burrito, and you can download it as a fully functional free 60 day trial. That should be more than enough time to bundle up your game and deploy it to the Android app store, or just debug it on your own phone for yourself. Adobe also gives out free licenses for students, and unemployed developers.
Hope this helps. Let me know if you have any trouble it should be very straight forward to wrap up your game and get it on your Android phone.