Category Archives: Flex
Blog Refresh
I just moved my blog from my previous web host to a new one, expect some bumps along the way along with broken links and examples. I am slowly working through fixing them, but feel free to report them to me if you find them. What prompted me to move my blog was price for [...]
Screen Capture with AIR 2 NativeProcess
Prior to AIR 2 the only way to capture the screen was to use something like Marapi Java Bridge that acts as a conduit between your application and the native system. However, AIR 2 now lets us call With AIR 2 Beta and the upcoming AIR 2 release, you can now use the command-line tool [...]
Also posted in AIR, Component Tagged Adobe AIR, AIR, Command-line interface, Screenshot Leave a comment
AS3 Yammer Library
For the past few months I have been working on an AS3 library that wraps the Yammer API for use in Flash, Flex, and AIR projects. The biggest hurdle was making the application work for the web. As it is now, for Flash projects, you still need to be targeting Flash player 10 so that [...]
Also posted in AIR, API, Flash Builder 4, Flex 4 Tagged as3corelib, as3signals, as3yammerlib, Yammer 1 Comment
Custom AIR updater interface using ApplicationUpdater
To tell you the truth, I never gave the ApplicationUpdaterUI much thought in terms of memory use before this post. I just thought it was a great way to add a complete update system to your AIR applications. I had not thought it could be so memory intensive until a recent conversation with Jesse Warden [...]
Garbage collection and styles
I read a really great post in my endless search for better garbage collection in AIR and Flex. Bernd Bindreiter of firstrow RIA posted a 5-part series on garbage collection and one of them involves removing skins from Button controls in order to have them garbage collected properly. In his post he removes each individual [...]
AIR :: TextField bug when resetting HTML text.
I ran into a really strange issue that only occurs within AIR applications (AIR 1.5.1/1.5.2). When I create a TextField control, set it's style, and then assign it HTML text it appears fine. However, if I wish to reset that TextField content and the original content has links, the entire replaced content becomes one HTML link. I think the issue can be better explained with some images and some code samples.
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 [...]
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 AIR, Flash, Flex 3 Tagged addEventListener, DisplayObject, EventDispatcher, garbage collection, useWeakReference 3 Comments


AIR for Android: Phoenix Traffic Application