Skip to main content
Known Participant
December 26, 2012
Question

Developing Mobile apps with AS3

  • December 26, 2012
  • 1 reply
  • 3449 views

Hi there,

I'm so excited that we can develop Native Mobile Apps using Flash (flex or as3).. I'm quite new to this community and would like to ask other folks who have been working with AS3 and Flex framework to create native apps.  

  1. Are mobile apps made in AS3 faster than Flex apps regardless of being a game or content-based app?
  2. Is there a way we can get native UI in AS3 or Flex(I know there is a skin made already for iOS and Android for apps developed using Flex framework)?
  3. What are the major differences between AS3 and Flex 4.5.x?   
  4. What are the limitations/advantages of AS3 and Flex compared with using specific-to-platform programming languages (e.g Java, Objective-C..etc)?
  5. Can I use AS3 with Flex?
  6. Is security of data a big concern when developing apps in either AS3 or Flex?
  7. Are there any tutorials/books about developing view-based or tab-based apps in AS3?
  8. What access to native hardware do we have when using flash to develop mobile apps?

Thank you..

This topic has been closed for replies.

1 reply

sinious
Legend
December 26, 2012

There's many ways to skin a cat, most of the answers are entirely based on what you want to do.

1. Depends on the game. In general the Flex (spark+) components are mobile optimized but there are Stage3D (FeathersUI, etc) GPU-drive elements that run at near native-like speed. The components are not nearly as easy to work with (although the codebase is trying to be unified for ease) and they do follow some common component conventions. So based on what you want to do, possibly Flex, possibly Stage3D.

2. All my apps have 100% custom UIs. I use almost absolutely no components or anything premade that I don't wildly extend. That's the power of Flash. 100% custom UIs are much easier to develop.

3. They run on completely different levels. Flex uses a different language (MXML) with some hand holding and different approaches to developing apps. Components are used heavily and often skinned quite a bit to get a custom look. They're easy to maintain and scale. AS3 projects cannot use the Flex layer so you'll be utilizing components designed for Flash Pro versus Flex. Many are similar. The approach to how the app is built can be more flexible but require a lot more hand coding. You use AS3 to do it all and no MXML. People from Flash Pro should probably migrate and try an AS3 Mobile project, learn the basics and then take a look at the MXML language.

4. Advantages are a highly reusable code-base between different devices. If developed properly much of the AIR framework is unified so when deployed it can be ported very easily to iOS, Android, BBTab, Desktop, etc. With Adobe Native Extensions we can also tap into certain portions of native coding that the AIR framework doesn't yet support which is IMHO one of the biggest benefits. The limits are you're cross-compiling to arm/etc and no matter what, even with Stage3D, to get native performance there is no faster way to develop basic applications than native. You have no limits or require ANEs to overcome basic obstacles and everything "just runs great". It can take a lot of time to get even close to that performance without native.

5. Yes Flex has script tags and it's weaved into the overall usage of Flex quite a bit. You'll end up getting very used to heavily mixing MXML and AS3.

6. Only if you code poorly but hopefully your app will be sniped from the store if this is found to be true. Same rules as native apps. Don't do silly things like expect the OS is impervious and save raw credit card data on the device, etc etc. No advantage either way from a security standpoint.

7. Of course. As well as tutorials online. Google and ye shall find.

8. Entirely based on devices and the ANEs that can be developed. You get the typical basics, write/read storage in your sandbox, use the internet, camera, microphone, sensors, etc. Android requires the user to authorize it, iOS doesn't. You should always warn a user about your intentions with their devices.

rotten_69Author
Known Participant
February 8, 2013

Thanks for the response and having the time to answer the questions. I'm looking for a book that I can read n understand the flex framework only for mobile. I don't intend to develop for the web. That would be so greatly appreciated.

Just out of curiousity, we can't develop apps in flex to be run in the mobile browser, Can we?

sinious
Legend
February 8, 2013

The internet is the best book to me. Plenty of tutorials and sample code, including Adobe's own complete offerings.

Depends on the mobile browser, for instance iOS doesn't support the Flash Plugin so it won't be able to. It'd be a good idea just to use standard HTML5 for mobile browsers.