AS3 Tricks

AS3 tricks 2: singleton for settings

Trick number 2: creating a singleton to load, hold, and apply settings for our AIR application.

AS3 tricks 1: swfs in AIR

Suppose you want to make an AIR application but you have a history of working in actionscript, not mxml. Do you need to learn an entire new language to make AIR applications? No, not really. Flex has a SWFLoader class made just for you, and if you work in fullscreen interactives like me you can let Flex handle screen management and just tell your SWFLoader to fill the stage.

AS3 tricks

I'm currently experimenting with AIR applications as a replacement for our usual practice at work of developing a swf and then publishing it as an .app or .exe in the Flash IDE. I always have Flex Builder open to edit my classes and find it a bit annoying to have to create an empty fla, point it at my main class, and then switch back and forth between flash and flex to publish and test. Now, with a target of an AIR application, I get cross platform compatibility and the ability to test and publish everything from the same IDE (Flex Builder).