I want to know is there any option to create apps for android with AS2 or not?
Flex?
Adobe AIR?
I want to know is there any option to create apps for android with
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The short answer is no. AIR is the way you make ActionScript apps for Android, but unfortunately the Android AIR runtime does not include the AS2 virtual machine – it just doesn’t know how to play AS2 content, period. (This was done partly to keep Android AIR parallel to iOS, where AS2 content can’t run because Apple doesn’t allow runtime interpretation).
The slightly broader answer is, technically you can get AS2 into an AIR for Android app, but only via the browser. The StageWebView class lets your AIR/Android app show HTML content, and it does that by instantiating a limited version of the device’s native browser. So you can show browser flash (including AS2) inside AIR as long as the device’s native browser has a Flash player. (This doesn’t work on iOS ;D ) But you should avoid this method if at all possible – it will probably work differently on different devices and your Flash content won’t be able to use AIR APIs, and I’d expect other problems as well. (How the security sandboxes work I don’t even want to consider..)
I’m afraid the only “good” solution is to port to AS3.