Using ActionScript 3.0 Components |
|
|
|
| Customizing the UI Components > Customizing the CheckBox | |||
You can transform a CheckBox component horizontally and vertically while authoring and at run time. While authoring, select the component on the Stage and use the Free Transform tool or any of the Modify > Transform commands. At run time, use the setSize() method or applicable properties of the CheckBox class. For example, you can change the size of a CheckBox by setting its height and width and scaleX and scaleY properties. Resizing the CheckBox does not change the size of the label or the check box icon; it only changes the size of the bounding box.
The bounding box of a CheckBox instance is invisible and also designates the hit area for the instance. If you increase the size of the instance, you also increase the size of the hit area. If the bounding box is too small to fit the label, the label is clipped to fit.
|
|
|
|