Hey everyone,
I'm having a problem using the tabStops property from within HTML text
in a dynamic textfield. I'm using CSS to format the text. I don't know
if my code is conflicting with itself or not. Here's what my code looks
like.
var myStyle = new TextField.StyleSheet();
myStyle.onLoad = function() {
myText.styleSheet = this;
myText.html = true;
myText.htmlText = myHTML;
//format the tabs
var myformat:TextFormat = new TextFormat();
myformat.tabStops = [40, 80, 120, 160];
myText.setTextFormat(myformat);
};
//load the stylesheet
myStyle.load("myExternalCSS.css");
myHTML = <p class =
'body'>\tSTRENGTH\tDURABILITY\tCONTROL\tEFFECTIVE</p>
The tabs are recognized but they are only moving to default value of
4px. They are not recognizing the tabStops at all.
Any help is appreciated.
Thanks,
Scott
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com