To answer my own question:

http://chattyfig.figleaf.com/pipermail/flashcoders/2003-February/063062.
html



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Brantley
Sent: Wednesday, May 17, 2006 1:02 PM
To: Flashcoders mailing list
Subject: RE: [Flashcoders] \t in html - how to use tabStops


Anybody got any answers? Please!

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Scott
Brantley
Sent: Wednesday, May 17, 2006 11:41 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] \t in html - how to use tabStops

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

_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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
_______________________________________________
Flashcoders@chattyfig.figleaf.com
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

Reply via email to