
TextField.borderColor Property
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
Alphabetical Language Reference
|
833
To make the blue background appear, we must add the following line:
theField_txt.background = true;
Setting the value of background does not alter the value of backgroundColor.
See Also
TextField.background, TextField.border, TextField.borderColor, the Color class
TextField.border Property
Boolean; turns text field border on and off
Flash 6; accessible only via authoring tool in Flash 4 and Flash 5
read/write
theField.border
Description
The Boolean border property specifies whether to show an outline around theField’s
bounding rectangle (
true) or not (false). The outline color is specified by borderColor
(defaults to black). To change the size of the rectangle, use the _width and _height proper-
ties. To add a background color to the rectangle, use the
background and backgroundColor
properties.
To produce a more elaborate background for a text field, set
background and border to
false, and manually draw a shape behind the text field.
Example
Put a black border on theField_txt:
this.createTextField("theField_txt", 1, 0, 0, 80, 20);
theField_txt.border = true;
theField_txt.text = "hello world";
Now make the border blue:
theField_txt.borderColor = 0x0000FF;
See Also
TextField.background, TextField.backgroundColor, TextField.borderColor ...