The following example shows how you can set the number of visible items in a Flex ComboBox control’s dropdown menu by setting the rowCount property.
Full code after the jump.
Continue reading ‘Setting the number of visible items in a ComboBox control’s dropdown menu in Flex’
The following example shows how you can toggle the nested text field in a ColorPicker control’s swatch panel in Flex by setting the showTextField property.
Full code after the jump.
Continue reading ‘Toggling the text field in a Flex ColorPicker control’
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’
The following example shows how you can control the easing duration and easing functions that the ColorPicker control uses to display its drop-down swatch palette. Of course, this probably isn’t the best example of “useful animation” and will probably just annoy users (the long 2 second easing animation), but it is nice to know that you can change these if you need to.
Full code after the jump.
Continue reading ‘Changing the ColorPicker control’s easing duration and easing functions’
OK, I admit that this post probably doesn’t have much real-world use, and can probably annoy users if implemented poorly, but if you’ve ever wondered how/if you can change the opening/closing duration or easing function used for a ComboBox dropdown menu, this post is for you!
This entry looks at customizing the ComboBox control’s openDuration and closeDuration styles which control how long it takes for the dropdown menu to appear or disappear. By default both of these styles are set to 250 milliseconds (1/4 second). We’ll also look at changing the easing method used to animate the dropdown menu. Finally, we look at explicitly setting the dropdown menu’s width so it doesn’t inherit the ComboBox’s width and alternate the row colors for the items in the dropdown.
Full code after the jump.
Continue reading ‘Changing the Flex ComboBox control’s opening and closing easing functions’