Tag Archive for 'component'

[SOURCE FILES] UIComponent: Create Flex components from scratch

Source and example files from the presentation are now available through the following links:

1) What you get for free with UIComponent
2) [view] Component lifecycle
3) [view step one | step two] Invalidation

I have a text version of the presentation in the works. Anyways, I hope this is helpful to you as you create your own custom Flex components!

FormattedStepper extends NumericStepper

Sometimes it is necessary to display a formatted value such as currency or a percentage in a NumericStepper component, but that is not a default behavior. I need something extremely simple that can be written as:

XML:
  1. <mx:CurrencyFormatter id="currencyFormatter"
  2.     currencySymbol="$"
  3.     precision="2"/>
  4.  
  5. <controls:FormattedStepper formatter="{currencyFormatter}"/>

My internet searches turned up this similar attempt, but it seemed overly complicated (just my opinion). Continue reading to view my attempt at a simple formatted numeric stepper with source. I've also included an example of a custom formatter as well as an item renderer / item editor in a DataGrid.

Continue reading 'FormattedStepper extends NumericStepper'