Archive for December 13th, 2007

13
Dec

Programmatically opening and closing ComboBox controls in Flex

The following examples show how you can programmatically open and close a ComboBox control’s drop down menu in Flex by using the open() and close() methods of the ComboBox class in Flex.

Full code after the jump.

Continue reading ‘Programmatically opening and closing ComboBox controls in Flex’

13
Dec

Creating nonmodal Alert dialog boxes in Flex

The following example shows how you can use the Alert.NONMODAL constant to toggle whether a Flex Alert control is modal or non-modal.

Full code after the jump.

Continue reading ‘Creating nonmodal Alert dialog boxes in Flex’

13
Dec

Rounding numbers in Flex using the NumberFormatter class

I was looking at the NumberFormatter class this evening and made this little demo that shows the four different types of rounding (nearest, up, down, and none) in action.
The following example shows how you can use the static NumberFormatter class in conjuction with the NumberBaseRoundType constants to round and format numbers based on a certain criteria.

Full code after the jump.

Continue reading ‘Rounding numbers in Flex using the NumberFormatter class’