creatTextField

Hi Guys,
I am creating a textfield with AS and calling on an external HTML field to populate it. While this works fine I cannot get an external style sheet to format it. I am unsure of the problem.

If I place a dynamic textfield on the stage and target the instance the style sheet has no problem formatting the text. But created with AS I can’t get the style sheet to work. Here is my code.

//create field
this.createTextField(“content_txt”, 10, 0, 0, 390, 0);

//create and load styles
var ss:TextField.StyleSheet = new TextField.StyleSheet();
ss.load(“sample.css”);
content_txt.styleSheet = ss;

//text field attributes
content_txt.multiline= true;
content_txt.wordWrap = true;
content_txt.html = true;
content_txt.autoSize = true;

//load in exterrnal information
story = new XML();
story.ignoreWhite = true;
story.load(“home2.html”);
story.onLoad = function () {
content_txt.htmlText = story;
}

Any clues?
Cheers