The following example shows how you can set the open duration of a Flex Menu control by setting the openDuration style.
Full code after the jump.
Continue reading ‘Setting the open duration on a Menu control in Flex’
The following example shows you how you can determine if a check box menu item in a Flex PopUpButton control was checked or not by using the change event on the pop up menu along with the dataDescriptor property and isToggled() method.
Full code after the jump.
The following example shows how you can reduce the amount of whitespace around a PopUpButton control’s pop up menu by setting the variableRowHeight property on the menu in Flex.
Full code after the jump.
In a previous example, “Adding a horizontal separator to a Flex PopUpButton control’s pop up menu”, we saw how you can add horizontal separators to a PopUpButton control’s pop up menu by setting the type attribute to “separator”. So, “what other special types are there?”, you may be asking, as it turns out you can create folders with sub-menus, checkboxes, radiobuttons, and even disable item selection.
Full code after the jump.
The following example shows how you can add a horizontal separator to a PopUpButton control’s pop up menu in Flex by setting the type attribute to “separator” in the menu’s data provider.
Full code after the jump.
Continue reading ‘Adding a horizontal separator to a Flex PopUpButton control’s pop up menu’
The following example shows how you can set the width of a PopUpButton control’s pop up menu in Flex by setting the width property on the Menu control instance.
Full code after the jump.
Continue reading ‘Setting the width on a Flex PopUpButton control’s pop up menu’
The following example shows you how you can align the labels in a PopUpButton control’s pop up menu in Flex by setting the popUpStyleName and textAlign styles.
Full code after the jump.
Continue reading ‘Aligning labels in a Flex PopUpButton control’s pop up menu’
The following example shows how you can change the background color and alpha of a PopUpButton control’s pop up menu in Flex by setting the popUpStyleName, backgroundAlpha, and backgroundColor styles.
Full code after the jump.