The following example shows how you can change the open duration and open easing function on a Tree control in Flex by setting the openDuration and openEasingFunction styles.
Full code after the jump.
Continue reading ‘Changing the open duration and easing function on a Flex Tree control’
The following example shows how you can control the easing duration and easing function that the Accordion container uses when changing the visible child container.
Full code after the jump.
Continue reading ‘Changing the Accordion container’s easing duration and easing functions’
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’