Apr
28
2011

Is crossplatform and multiscreen development possible with the Flash Platform?

 

Is it possible to write one code, use the same graphics assets and deploy a succesfull game/app on both Google Android and Apple iOS devices?

The first thing to clarify is what do "crossplatform" and "multiscreen" mean? Cross-platform or multi-platform means that an application works on multiple different operating systems or hardwares. In Flash world (or rather AIR) this would mean working on Windows, Mac, Linux on desktop computers and iOS, Android and Blackberry Tablet OS on mobile devices. Multi-screen means that an app is designed to work correctly on devices with different screen resolutions. So properly developed app's should change graphical layout to correctly fit (look good) on desktops, smartphones and tablets screens.

And in regards to the main question of this article - of course I wouldn't be writing this post if it wasn't :) Hey, enough of empty words, I know that you want to see some evidence? Well I'm happy to say that I just took my Jumping Droid game code and assets created originally for AIR for Android project and compiled first with the Adobe iPhone Packager from Flash Professional CS5 and then with the AIR 2.6 and I couldn't believe that it works straight away and actually the animation seems to be even smoother! As you may expect there are small differences, such as the fact that iPhone doesn't have a hardware Menu button that I used to pause the game and I will need to create one on the screen instead. Also another "feature" of iOS is that it doesn't provide an option to quit apps and the only way to do that is to press the iPod/iPhone/iPad's Home button. Anyway, it is going to be only a small code modification to either enable or disable some hardware specific features.

Ok I know what you are thinking now - stop talking and show me the example :)

Let me know what you think. In next couple of days when I will be back from bank holiday weekend I will show you a new version of the game with the Menu button on screen running 60 fps on iPod Touch 3rd gen!

Comments 

 
0 #3 Danielle 2011-05-11 23:14
This is really cool! I played the game and got to 5th level!
Quote
 
 
0 #2 peSOS 2011-05-03 19:36
Congratulations , looks great.
Quote
 
 
0 #1 flexus 2011-05-02 23:49
Very impressive! Long Life Flash!
Quote
 
Follow me on Twitter