Category Archives: AIR

Using AIR 1.5.1 InovkeReason for friendlier applications

I recently discovered a new feature of AIR 1.5.1 that makes AIR applications more consumer friendly in certain situations. When you have your application set to start on user login using “NativeApplication.nativeApplication.startAtLogin = true”, you may want the application to start as a background process rather than show the entire application at login. In AIR [...]
Posted in AIR | Tagged , , | 6 Comments

Adding Mac OS X Close Behavior to AIR 1.5 Application

Just a quick post because I have seen this done on other sites but it no longer is valid in AIR 1.5. Most Mac OS X applications minimize to system tray on closing the application using the “x” close button on the app. To achieve this in AIR 1.5 you will need to do the [...]
Posted in AIR | Tagged , | 5 Comments

Garbage Collection and Event Listeners

On a recent AIR project I have become aware and subsequently obsessed with memory. My concerns have centered around garbage collection and event listeners, specifically how you clean up event listeners to allow Garbage Collection (GC) to clean up objects. Most DisplayObjects implement the EventDispatcher class that allows it to broadcast events. Trolling around the [...]
Also posted in Flash, Flex, Flex 3 | Tagged , , , , | 3 Comments

AIR :: NativeMenu issue on Mac

I think the NativeMenu is a great option for AIR applications as you can get a consistent look for the application that matches the operating system. The other advantage is that NativeMenu’s are “outside” of the application and do not get clipped as they would if you just created a popup Canvas with a List [...]
Also posted in Flex | Tagged , , , , | 1 Comment

Placing a ContextMenu on TextArea in AIR 1.5

The TextArea in Flex comes with its own contextual menu, so adding one does absolutely nothing but leave you wondering what the heck you are doing wrong. In the bug report there is a bit of a work around for AIR 1.5 which requires you to access the “textField” property of the TextArea and add [...]
Also posted in Cairngorm | Tagged , , , , , , , , | 1 Comment

PhoneSeek :: Adobe AIR application

PhoneSeek is an application to track any device that uses InstaMapper. InstaMapper is free real-time GPS tracking service. To use InstaMapper you need a GPS enabled device with the free InstaMapper tracking software installed along with a API Key from InstaMapper’s web site for each device you own. You can track mobile phones (iPhone, G1, [...]
Also posted in API, Android, Cairngorm, ColdFusion, Mate | Tagged , , , , | 5 Comments

Adobe AIR Runtime Font Differences

This was a heck of a problem to discover and even worse to try to figure out why. Sadly, I did not find a good solution the problem. I will give the short and sweet rundown of the issue. You have three different machines, three different operating system, the same version of Flex Builder (3.0.2), [...]
Also posted in Flex, Font | Tagged , , | 6 Comments

Flex :: ImageCache, a cheap way to cache images

In a previous post about Ely’s SuperImage, I mentioned that we decided to implement a simpler method for caching images within a Flex application. ImageCache is a simple class file that extends the Image control by adding the ability for the control to cache bitmap data. Unlike SuperImage, ImacheCache can handled SWF files, it just [...]
Also posted in Component, Flex | Tagged , , , , , | 21 Comments

Scrolling List Control with Tweener

I was on a simple little side task last week, to create a scrolling effect using the Flex control and also remove the default scroll bars. I didn’t want to do the usual trick, scrolling a HBox with items added to it using a repeater, or whatever. I wanted to animate the scrolling that occurs [...]
Also posted in Component, Flex | Tagged , , , , , , , | 4 Comments

Storing an ArrayCollection in the EncryptedLocalStore

On one of my side AIR projects I got the idea to store an ArrayCollection (AC) object into the EncryptedLocalStore (ELS) to have a sort of mini data structure. I thought it would be no problem since you can basically throw anything you want into the EncryptedLocalStore as long as its not over 10MB where [...]
Also posted in Flex | Tagged , , , , , , | 3 Comments