| WebXperience 2006-04-19, 3:29 am |
| While working through a tutorial using Flash MX 2004 and CSS StyleSheets,
publishing the page produces the error below each time I attempt to publish the
page and I am unable to continue. There doesn't seem to be a problem with the
code, and the TextField.as file is in the location where this error indicates
that it is not. Can anyone help?
//********************************* Error Message
************************************
**Error** C:\Documents and Settings\Administrator\Local Settings\Application
Data\Macromedia\Flash MX 2004\en\Configuration\CLASSES\TextField.as: Line 47:
The class 'TextField.StyleSheet' could not be loaded.
var styleSheet:TextField.StyleSheet;
**Error** Scene=Scene 1, layer=a, frame=1:Line 4: The class
'TextField.StyleSheet' could not be loaded.
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
Total ActionScript Errors: 2 Reported Errors: 2
//********************************* /Error Message
************************************
//-------------------------- The code that produces the error
----------------------\\
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function (success) {
if (success) {
loadedInfo.styleSheet = cssStyles;
} else {
loadedInfo.text = "There has been an error loading the requested
information. Please contact the Webmaster and report your error.";
}
}
//-------------------------- /The code that produces the error
----------------------\\
TX!
David Marion
Email: dvmarion@netscape.net
|