PDA

View Full Version : TextArea


Wayph
09-06-2006, 06:37 PM
Hi, I´m having problem trying to creat an indent in a TextArea Component. The "TextFormat" apears to work only in Dinamic Text Fields.

Does any one know how to creat an indent in a TextArea component ?

thanks

SoaringEagle2
09-23-2006, 08:56 PM
How about a workaround?

Put some spaces in front of the text? If you are working on the text in actionscript, you can always trim them off again

Just an idea....

SoaringEagle2 :)
www.phatchats.com

Mazoonist
09-24-2006, 06:43 AM
With a text area component with an instance name of "myTextArea"
myTextArea.setStyle("textIndent", 20);This creates an indent on the first line only. Maybe that's what you want. However, if you want every line to be indented, use this:
myTextArea.setStyle("marginLeft", 20);
The TextFormat class doesn't seem to be made to work with the Text Area component, only Static and Dynamic TextFields.