views:

43

answers:

3

hi everyone...

I am using a TextArea. I set its htmlText as follows:

textArea.htmlText = '<P ALIGN="CENTER"><FONT FACE="_sans" SIZE="14" COLOR="#FFFF00" LETTERSPACING="0" KERNING="0"></FONT></P>';

The problem is that there are always 2 lines in text area when it runs......when i remove this i get usual one line but then i m not able to set color and all.

I want to use textarea, set different colors on it and i dont want 2 lines in that.....

Am i making sense...please ask if you dont understand my question.

Thanks alot for any help in advance. Regards

A: 

Could you explain your problem a bit more?

adamzwakk
also, have you tried "textArea.multiline = false;" ?
adamzwakk
Thanks for replying.
A: 

Also the condenseWhite option...

http://www.adobe.com/livedocs/flash/9.0/ActionScriptLangRefV3/flash/text/TextField.html#condenseWhite

Jos
thanks for replying i tried that but it didn't solved my problem. But still nice info i didn't know about that. Regards
A: 

hi probably this is the flash bug. i think <p></p> tag creates new line itself so i just removed <p></p> tags from htmlText and it solved my problem

Regards