The following example shows how you can set the button height on a Flex ButtonBar control by setting the buttonHeight style.
Full code after the jump.
Continue reading ‘Setting the button height on a ButtonBar control in Flex’
The following example shows how you can set the horizontal and vertical gaps on a Flex Legend control by setting the horizontalGap and verticalGap styles.
Full code after the jump.
Continue reading ‘Setting the horizontal and vertical gaps on a Legend control in Flex’
The following example shows how you can set the marker width and marker height on a Flex Legend control by setting the markerWidth and markerHeight styles.
Full code after the jump.
Continue reading ‘Setting the marker width and height on a Legend control in Flex’
The following example shows how you can set the label placement on a Flex Legend control by setting the labelPlacement style.
Full code after the jump.
Continue reading ‘Setting the label placement on a Legend control in Flex’
In a previous example, “Changing the background color of an error tip in Flex”, we saw how you could change the background color of a Flex error tip by setting the borderColor style on the .errorTip CSS selector.
The following example shows how you can style the Flex .errorTip style dynamically using ActionScript using the static StyleManager.getStyleDeclaration() and setStyle() methods.
Full code after the jump.
The following example shows how you can set a custom label function on a Flex PieChart control by setting the labelFunction property on the PieSeries object.
Full code after the jump.
Continue reading ‘Setting a custom label function on a PieChart in Flex’
The following example shows how you can set the font weight of a Flex Charting Legend control by setting the fontWeight style on the LegendItem CSS selector.
Full code after the jump.
Continue reading ‘Setting the font weight on a charting Legend control in Flex’
The following example shows how you can set alternating column background colors on a Flex DataGrid control by setting the backgroundColor style for each DataGridColumn object.
Full code after the jump.
Continue reading ‘Setting background colors on a DataGrid column in Flex’
The following example shows how you can display a drop shadow behind a Flex VBox container by setting the borderStyle and dropShadowEnabled styles.
Full code after the jump.
Continue reading ‘Displaying a drop shadow behind a VBox container in Flex’
The following example shows how you can set focus on a TextInput control in Flex by using the Flex FocusManager class and the setFocus() method.
Full code after the jump.
Continue reading ‘Setting focus in Flex using the Focus Manager’
The following example shows how you can adjust the horizontal padding between children in a Flex HDividedBox container by setting the horizontalGap style.
Full code after the jump.
Continue reading ‘Setting the padding between children in a DividedBox in Flex’
The following example shows how you can set the border color for a Flex ComboBox control’s dropdown menu by setting the dropdownBorderColor style.
Full code after the jump.
Continue reading ‘Setting the dropdown menu border color on a ComboBox control in Flex’
The following example shows how you can toggle item roll over highlighting on a Flex List control by setting the useRollOver style.
Full code after the jump.
Continue reading ‘Toggling item roll over highlighting on a List control in Flex’
The following example shows how you can use the describeType() method to inspect a class’s accessor methods.
Full code after the jump.
Continue reading ‘Inspecting the properties in a class using the describeType() method and E4X/XML’
The following example shows how you can customize the divider skin on a Flex HDividedBox or VDividedBox container by setting the dividerSkin style.
Full code after the jump.
Continue reading ‘Customizing the divider skin on a DividedBox container in Flex’