Problem w/dynamically loaded text and CSS

Hello, I’m new to this forum… amazing how it looks like ASorg. related? which case this may somehow be a repeat, but no help from there so thought i’d try here…

I’ve created a text field using AS2, and am loading text from an external text file, and loading css from external file as well. before i tried to include the css, the text loaded just fine. now that i’m trying to include the css it’s not’s working.

below is the code i’m using… what is happening is nothing appears in the textfield. even though i get “success” for the loading of both text and css.

under the ‘//load text file’, the codeline: //scroller_txt.htmltext = var1
i thought might be my problem. i tried it first with ‘scroller_txt.text’ and got an “undefined” in the textfield when i tested. with the “html” added i see nothing. it is now commented out while i tried a different way (using “output”) from a tutorial i found here… new way made no difference.

css looks like:

[size=1][indent].title {

font-family: Arial,Helvetica,sans-serif;

font-size: 14px;

}

[/indent][/size]

text looks like:

[indent]var1=<span class=“title”>“Voice of the Customer”

Client Satisfaction Surveys</span>
CSC’s Chemical Accounts has developed a suite of client satisfaction surveys to collect and measure client perception. “Voice of the Customer” Client Satisfaction surveys are the first steps in the Account Performance Management (APM) program. These targeted surveys provide

[/indent]from some other posts i’ve seen, there has been an issue of embedding fonts… but i’m using the font-family Arial,Helvetica,sans-serif; at least for now, and didn’t expect I would have to load a “universal” font like that…

so do i have a coding issue or a font issue?? thanks for help!!

my code:

[indent]//create textfield

_root.createTextField(“scroller_txt”,5,0,0,300,200);
scroller_txt.border=true;
scroller_txt.borderColor=0x397dce;
scroller_txt.multiline=true;
scroller_txt.wordWrap=true;
scroller_txt.html=true;
//load css
var cssURL = “formats.css”
clientSat = new TextField.StyleSheet();
clientSat.load(cssURL);
clientSat.onLoad = function(success)
{
if (success)
{
myTextField.styleSheet = clientSat;
trace (“success!”)
}
}

//load text file
loadVarsText = new LoadVars();
loadVarsText.load(“clientsat.txt”);
loadVarsText.onLoad = function (success){
if (success){
trace (“success!”);
//scroller_txt.htmltext = var1
output.variable = “var1”
output.htmlText=loadVarsText.var1;
}else{
trace (“not loaded”);
}
}

[/indent]Regards,

ladyofbenjamin