# Help! How do you access a loaded StyleSheet

**URL:** https://forum.kirupa.com/t/help-how-do-you-access-a-loaded-stylesheet/277948
**Category:** flash
**Created:** [December 19, 2008, 5:58am UTC](https://forum.kirupa.com/t/help-how-do-you-access-a-loaded-stylesheet/277948 "2008-12-19T05:58:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![dougl](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@dougl](https://forum.kirupa.com/u/dougl)
#### Post date: [December 19, 2008, 5:58am UTC](https://forum.kirupa.com/t/help-how-do-you-access-a-loaded-stylesheet/277948/1 "2008-12-19T05:58:36Z")

</div>

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.
