PDA

View Full Version : Flash with CSS



khuba
08-30-2006, 12:59 PM
Hi

I used this script in flash
extranal text file is run but css is not working
plz help me

myData = new LoadVars();
myData.onLoad = function() {
myHeadline_txt.htmlText = this.content;
myText_txt.htmlText = this.content;
loadtextStyle = new TextField.StyleSheet();
myText_txt.setStyle("backgroundColor","0x8F908E");
loadtextStyle.load("css.css");



};

myData.load("example1.txt");
stop();

BLiZZaRD
08-30-2006, 05:43 PM
my_txt.html = true;
my_txt.htmlText = exampleText;

Try that.

khuba
09-07-2006, 04:40 AM
Thanks