EasyManua.ls Logo

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT - Page 704

MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT
816 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
704 Chapter 12: ActionScript Dictionary
Event handler summary for the TextField.StyleSheet class
L
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
styleName
A string that specifies the name of the style to retrieve.
Returns
An object.
Description
Method; returns a copy of the style object associated with the style named styleName. If there is
no style object associated with styleName, null is returned.
Example
Suppose a style sheet object named textStyles loads an external style sheet file named styles.css
that contains a single style named heading, which defines font-family, font-size, and font-
weight
properties, as shown below.
// In styles.css
heading {
font-family: Arial;
font-size: 24px;
font-weight: bold;
}
Method Description
TextField.StyleSheet.onLoad
Callback handler invoked when a
TextField.StyleSheet.load() operation has completed.

Table of Contents

Related product manuals