Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 09-23-2005, 09:53 AM   #1
Registered User
Join Date: Sep 2005
Posts: 4
Default Text format and HTML code (TextField vs TextArea)

I have used a TextField and formated the text inside with setTextFormat, but when I watch the htmlText field I see no html tags. But if I use the TextArea component I can see the html code in the text field but I cannot format the text with setTextFormat.

I need to format the text (like a rich edit component with bold, italic, underline buttons, etc) and send the html code result (a XML post, for example).

How can I give format to a TextArea? Why I cannot see the html tags in the htmlText field of TextField? Ideas? Thanks!
GrEnDeL is offline   Reply With Quote
Old 01-20-2006, 02:54 AM   #2
Registered User
Join Date: May 2005
Posts: 16
Default use setNewTextFormat() instead...

The first time that you set the text format you need to use setNexTextFormat() instead of setTextFormat(). After you first declare it this way, you can then use setTextFormat() from there on out.
Cerulean is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 05:12 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.