Using ActionScript 2.0 Components |
|
|
|
| Creating an Application with Components > Build the main page > Customize the appearance of components | |||
Each component has style properties and methods that let you customize its appearance, including highlight color, font, and font size. You can set styles for individual component instances, or set styles globally to apply to all component instances in an application. For this tutorial you will set styles globally.
// Define global styles and easing equations for the problems_cb ComboBox.
_global.style.setStyle("themeColor", "haloBlue");
_global.style.setStyle("fontFamily", "Verdana");
_global.style.setStyle("fontSize", 10);
_global.style.setStyle("openEasing", mx.transitions.easing.Bounce.easeOut);
This code sets the theme color (the highlight color on a selected item), font, and font size for the components, and also sets the easing for the ComboBox--the way that the drop-down list appears and disappears when you click the ComboBox title bar.
|
|
|
|