Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the CheckBox > Using styles with the CheckBox | |||
You can set style properties to change the appearance of a CheckBox instance. For example, the following procedure changes the size and color of a CheckBox label.
To change the size and color of a CheckBox label:
var myTf:TextFormat = new TextFormat();
myCb.setSize(150, 22);
myTf.size = 16;
myTf.color = 0xFF0000;
myCb.setStyle("textFormat", myTf);
For more information, see Setting styles. For information on setting style properties to change the component's icons and skins, see Creating a new skin and Using skins with the CheckBox.
|
|
|
|