Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Setting styles > Setting a style for all components | |||
You can set a style for all component using the static setStyle() method of the StyleManager class.
To set a style for all components:
import fl.managers.StyleManager;
var tf:TextFormat = new TextFormat();
tf.color = 0xFF0000;
StyleManager.setStyle("textFormat", tf);
aList.addItem({label:"1956 Chevy (Cherry Red)", data:35000});
aList.addItem({label:"1966 Mustang (Classic)", data:27000});
aList.addItem({label:"1976 Volvo (Xcllnt Cond)", data:17000});
aList.allowMultipleSelection = true;
|
|
|
|