0

TextArea を使用しています。htmlText を次のように設定します。

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

問題は、実行時にテキスト領域に常に 2 行あることです。これを削除すると、通常の1行になりますが、色とすべてを設定できません。

textarea を使用し、異なる色を設定したいのですが、その中に2行は必要ありません。

4

2 に答える 2

0

また、condenseWhite オプション...

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

于 2010-10-07T18:36:53.223 に答える
0

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

Actually if i remove <p></p> then there is a format problem so the best solution is to remove '>' from <p>something</p> so new line will not be there.

Regards

于 2010-10-07T22:38:31.653 に答える