Event handler summary for the TextField.StyleSheet class
L
Method
TextField.StyleSheet.onLoad
Constructor for the TextField.StyleSheet class
Availability
Flash Player 7.
Usage
new TextField.StyleSheet()
Returns
Nothing.
Description
Constructor; creates a TextField.StyleSheet object.
TextField.StyleSheet.getStyle()
Availability
Flash Player 7.
Usage
styleSheet.getStyle(styleName)
Parameters
A string that specifies the name of the style to retrieve.
styleName
Returns
An object.
Description
Method; returns a copy of the style object associated with the style named
no style object associated with
Example
Suppose a style sheet object named
that contains a single style named
properties, as shown below.
weight
// In styles.css
heading {
font-family: Arial;
font-size: 24px;
font-weight: bold;
}
704
Chapter 12: ActionScript Dictionary
Description
Callback handler invoked when a
TextField.StyleSheet.load()
,
is returned.
styleName
null
loads an external style sheet file named styles.css
textStyles
, which defines
heading
operation has completed.
styleName
,
font-family
font-size
. If there is
, and
font-
Need help?
Do you have a question about the FLASH MX 2004 - ACTIONSCRIPT and is the answer not in the manual?
Questions and answers