Object Orientated Programming (OOP) is going to become more relevant, and required, for Flash mobile developers once Flash Player 10 and AS3 (plus AIR and Flex) arrive on the mobile platform. ActionScript 3 requires that you use a class-based OOP methodology, and for many Flash Lite developers who have been happily living with AS2, this is the time to start getting into it. In this episode, I walk through extracting code from the timeline and placing it into classes, and some of the things you might encounter along the way (the Delegate class, etc).
In this episode I go through some of the various ActionScript techniques for changing and managing application screens, or views, that you might want to use depending on what you’re building (for example prototypes or production applications).
Via Ben Forta: Adobe Platform Evangelist Greg Wilson has created a cool short URL service specifically designed for sharing code snippets and “disposable web pages” – tBlurb.com
Simply insert your code into the rich text “Code Syntax” window and select what language it is. tBlurb.com then generates a shortened URL (or you can create your own) that links to that code sample complete with line numbering and syntax highlighting. For example, take a look at this small snippet of ActionScript that is used for stopping automatic screen rotation using the Nokia S60 Platform Services Device object – http://tblurb.com/S2laJ9
Here’s another sample from Greg that shows some more complex MXML and XML code on the same page – http://tblurb.com/Bfmb77
This is a very cool app that I’ll be using for sure, which by the way has been built using Adobe Cold Fusion. Well done Greg!
Darren is the author of a new article of the Mobile and Devices Dev Centre – “Building a List component in Flash Lite“. The article covers the way to implement a “list” in a Flash Lite application using mobile-friendly AS2 code. Check it out!
I'm currently the Team Lead for "Appland" at Vodafone Hutchison Australia, based in Sydney. Views on this blog are my own and not that of my employer. More about me.