I use a set of classes that do what you seem to need. I can't give you the
source without losing my job but basically it works like this...

TextView class handles creating the textbox itself and has a few other
methods... 

setText(t) - takes t and sets the textField.htmlText property to the return
vale of renderHTMLText(t)

renderHTMLText(t) - returns something along the lines of 

return '<p class="' + fontStyle + '">' + t + '</p>';

where fontStyle is the reference to the css style you want to apply to the
field...

so if you just want the unstyled text from the textField you can call

getText() on the TextView which will return textField.text - which has no
style...

I came in half-way through this thread by the looks of things so I could
have missed the point, hope this helps, though

T




-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of grimmwerks
Sent: 30 October 2006 06:39
To: Flashcoders mailing list
Subject: Re: Re: [Flashcoders] CSS question..

Thanks Alain - one more question.

I'm trying to have a way for a client to change the styles of text
using CSS; originally I thought CSS killed an inputText, but it still
seems to work. But I'm unsure how best to grab the text, assign <p
class='whatever'> </p> around the text and throw it back...
_______________________________________________
[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


_______________________________________________
[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

Reply via email to