User Guide

1064 RectBorder class
Using styles with the RectBorder class
You can set style properties to change the appearance of a RectBorder instance. A RectBorder
instance uses the following styles:
borderCapColor
borderColor
buttonColor
highlightColor
shadowCapColor
shadowColor
themeColor
The styles available on a particular RectBorder instance depend on the theme in use and the
border style set on the component. For an interactive demonstration that shows the
relationship between theme, border style, and available color style properties, see Using
Components Help.
The four special Halo styles—
default, alert, dropDown, and menuBorder—have some lines
whose colors cannot be set through styles. You can modify these colors only by creating a
custom theme and modifying the appropriate ActionScript within the custom RectBorder
implementation.
To set a border style using setStyle:
1. Select File > New and create a new Flash document.
2. Drag a TextArea component to the Stage and give it the instance name my_ta.
3. In the first frame of the main timeline, add the following ActionScript to the Actions panel:
my_ta.setStyle("borderStyle", "alert");
4.
Select Control > Test Movie to test the SWF file.
NOTE
You can set the borderStyle to "alert" because you are using the default theme
(Halo). If you are using a different theme, then the four “special” Halo styles,
including "alert", may not be available.