0
我有一個TextField。 這裏是一個片段:img標籤在actionscript3中無法正常工作TextField
this.textField = new TextField();
this.textField.defaultTextFormat = font.format;
this.textField.selectable = true;
this.textField.border = true;
this.textField.wordWrap = true;
this.textField.multiline = true;
這裏是新行添加到文本字段框的方法:
this.textField.htmlText = 'some text <IMG SRC="http://gravitatestudio.com/wp-content/themes/gravitate/images/facebook.png">';
的問題是,圖像總是被放置在文本,而不是年底文本。
這裏是HTML文本後的痕跡(this.textField.htmlText)已添加:
<P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#FFFFFF" LETTERSPACING="0" KERNING="0">some text <FONT SIZE="2"><IMG SRC="http://gravitatestudio.com/wp-content/themes/gravitate/images/facebook.png"> </FONT></FONT></P>
此外,我需要用微笑的圖像添加到像聊天消息文本中的任意一側(左,文字的中間,右側)。
有什麼建議嗎?
應該幫助我。 謝謝。 – stryker
@IvanK你好。 – mihai