I have a CSSLoader.as class that loads an external css file into a StyleSheet.
I am importing and creating an instance of CSSLoader inside Master.
_cssLoader = new CSSLoader(flashStyles.css);
Inside Master,
_loadedStyles = _cssLoader.getStyleSheet;
_loadedStyles = "+_loadedStyles.styleNames); outputs the correct css styles.
When the StyleSheet is assigned to a textField in Master Class
textField.styleSheet = _loadedStyles;
textField.htmlText = “<span class=‘header’>Page head goes here</span>”;
the script runs without errors but no text is output.
In css, I’m using the embedded font name:
.head {font-family: “Trebuchet MS Bold”;}
Thanks for your help.