The following example shows you how you can change the direction of a Box container in Flex by setting the direction property to one of the constants in the BoxDirection class. The <mx:Box /> container is the superclass of the HBox container and VBox container. The subclasses (HBox and VBox) do not add any new functionality, they simply set the direction property automatically to “horizontal” or “vertical”.
Full code after the jump.
Continue reading ‘Changing a Box container’s direction in Flex’
The following example shows how you can add a GlowFilter to a Flex Alert control by setting the filters property on the Alert object reference returned by the static Alert.show() method.
Full code after the jump.
Continue reading ‘Adding filters to an Alert control in Flex’
The following example shows how you can display scroll tips in a Flex HorizontalList control by setting the Boolean showScrollTips property.
Full code after the jump.
Continue reading ‘Displaying scroll tips in a HorizontalList control in Flex’
The following example shows how you can alternate item colors in a HorizontalList control in Flex by setting the alternatingItemColors style.
Full code after the jump.
Continue reading ‘Setting alternating colors on a Flex HorizontalList control’
The following example shows how you can change the background fill alpha on a HorizontalList control in Flex by setting the backgroundAlpha style.
Full code after the jump.
Continue reading ‘Changing the background alpha of a HorizontalList control in Flex’
The following example shows how you can use a timer to change the selected index in a Flex ViewStack container.
Full code after the jump.
Continue reading ‘Using a timer to change the selected index of a ViewStack container in Flex’