Take a look at FlashTextArea at osflash.
I already did all that work.

On Mon, 20 Mar 2006 09:10:46 -0300, Danny Kodicek <[EMAIL PROTECTED]> wrote:

I don't know if this will help you at all, but the TextField.Stylesheet class has a transform() method which will convert _one_ of your style objects from the Stylesheet (ie. The one you maybe assigned for the <a> or the <p> element or <your_own_custom> element) into a TextFormat object which you can then apply to your TextField with setNewTextFormat.

Hmm - I'm not sure how this works (the transform() docs are possibly the most useless I've ever seen!). As far as I can make out, transform() is the internal function used by the StyleSheet object to translate it into textFormats. But I can't quite tell what happens next... Can you give me an example of what you mean in practice?

Right now I'm fairly close to dropping styleSheets altogether. My current plan is to have a parser that translates the HTML into my own internal XML format, so that the textField is really a fairly dumb container, but really this is turning into such a nasty hack that I'm not terribly happy about it.

Danny

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



--
_____________
Marcelo Volmaro
_______________________________________________
[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