Author Archives: Mister
Flex :: Truncating HTML Text
With Flex truncating text within a Label control is easily done by setting the property “truncateToFit” to true. This parameter doesn’t do much when using the Text or TextArea controls in Flex. To truncate text in these controls you would have to build your own function to count characters and add the ellipses. There is [...]
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 [...]
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 [...]
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 [...]
Posted in AIR, Flash, Flex, Flex 3 Tagged addEventListener, DisplayObject, EventDispatcher, garbage collection, useWeakReference 3 Comments
Dude, where’s my phone (GPS)
I thought I had lost my phone for the past day, I looked every where and called it a few times, no luck. So I remembered I had the InstaMapper GPS software installed. You can send an SMS to the phone with your InstaMapper key to activate the GPS and have it report its location. [...]
Posted in Flash Remoting 2 Comments
HTTP Status 201 causing Flex #2032 Error in IE only
I ran into a problem right when we were going to launch a new Flex web-based application to production (of course) with Internet Explorer and Flex. I was calling an RESTful service that returns XML and using the built-in Flex HTTPService with either POST/GET as the method for the request. Most of the service calls [...]
Posted in API, Flash, Flex Tagged 2032 Error, Flex, HTTPService, Rails, Status 201, Web Services, XML 3 Comments
Smooth Scrolling HorizontalList
This example is based on Alex Harui’s Smooth Scrolling List. It just changes the code to work with the HorizontalList control rather than the List control. The SmoothHorizontalScrollingList class extends the HorizontalList control adding the needed functionality to allow smooth scrolling:


AIR :: TextField bug when resetting HTML text.