Rectborder Class - MACROMEDIA FLASH MX 2004-USING COMPONENTS Use Manual

Using components
Hide thumbs Also See for FLASH MX 2004-USING COMPONENTS:
Table of Contents

Advertisement

RectBorder class

The RectBorder class is used as the border of most components. A separate implementation of
this class is provided by each theme, which has its own set of border styles and properties that it
supports.
You interact with the RectBorder class primarily by setting styles on other components. For
example, when you include a List component in a document and set the
property, the List component creates a RectBorder instance that uses the list's
setting. You may also create a custom RectBorder implementation to skin the border of all
components that use RectBorder.
The RectBorder class has four standard display styles:
The Halo theme also adds four special display styles, which are used by specific components.
Special style
default
alert
dropDown
menuBorder
The RectBorder behavior and style properties described here are consistent for all components
that utilize the 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—
whose colors cannot be set through styles. You can only modify these colors by creating a custom
theme and modifying the appropriate ActionScript within the custom RectBorder
implementation.
Component that uses it
Window
Alert
ComboBox and DateField
Menu and MenuBar
,
,
default
alert
dropDown
Components Dictionary
borderStyle
,
,
, and
none
inset
outset
, and
menuBorder
RectBorder class
CHAPTER 6
style
borderStyle
.
solid
—have some lines
647

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash mx

Table of Contents