MACROMEDIA FLASH MX 2004 - ACTIONSCRIPT Reference Manual page 707

Actionscript reference guide
Hide thumbs Also See for FLASH MX 2004 - ACTIONSCRIPT:
Table of Contents

Advertisement

TextField.StyleSheet.onLoad
Availability
Flash Player 7.
Usage
styleSheet.onLoad = function (success) {}
Parameters
A Boolean value indicating whether the CSS file was successfully loaded.
success
Returns
Nothing.
Description
Callback handler; invoked when a
style sheet loaded successfully, the
or if an error occurred in receiving the response from the server, the
Example
The following example loads the CSS file named styles.css (not shown) into the style sheet object
. When the file has finished loading successfully, the style sheet object is applied to a
styleObj
TextField object named
var styleObj = new TextField.StyleSheet();
styleObj.load("styles.css");
styleObj.onLoad = function (success) {
if(success) {
news_txt.styleSheet = styleObj;
}
}
See also
TextField.StyleSheet.load()
TextField.StyleSheet.parseCSS()
Availability
Flash Player 7.
Usage
styleSheet.parseCSS(cssText)
Parameters
The CSS text to parse (a string).
cssText
Returns
A Boolean value indicating if the text was parsed successfully (
TextField.StyleSheet.load()
parameter is
success
.
news_txt
operation has completed. If the
. If the document was not received,
true
parameter is
success
) or not (
true
false
TextField.StyleSheet.parseCSS()
.
false
).
707

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Questions and answers

Table of Contents