Creating a Formatter that uses a custom pattern in Flex / Actionscript

Someone recently asked how they could create a custom NumberFormatter that would accept a custom pattern as a parameter. Flex already includes several useful formatters that will help with most situations, but if you need to convert data to a non-standard format you’ll have to create something custom yourself.

How to pass additional parameters to an event listener in Flex

In this example, we will look at how we can pass additional parameters to an event listener using Flex’s dynamic function construction. In the example below we call the addArguments() method with the parameter we want to pass when creating the event listener for the Alert window. The addArguments() method will then return the function read more »

AdvancedDataGrid with HierarchicalData causing “memory leaks”

I recently ran into an issue with one of my Flex applications which used an AdvancedDataGrid with HierarchicalData that contained several thousand records as its data provider. When the data got refreshed, the application’s memory usage would increase significantly. Eventually this caused the application to use several gigs of memory. Gigs.