Archive for the 'PopUpMenuButton' Category

06
Apr

Centering a pop up window when a Flex application is resized

The following example shows how you can center a pop up window (in this case an Alert control) when the Flex application is resized by using the resize event on the <mx:Application /> tag and using the static PopUpManager.centerPopUp() method.

Full code after the jump.

Continue reading ‘Centering a pop up window when a Flex application is resized’

21
Feb

Creating a custom label function on a Flex PopUpMenuButton control

The following example shows how you can use an XML data provider on a PopUpMenuButton in Flex and create a custom label function using the labelFunction property.

Full code after the jump.

Continue reading ‘Creating a custom label function on a Flex PopUpMenuButton control’