/ Published in: ActionScript 3
让htmlText显示图片,需è¦è®¾ç½®wordWrap=ture,multiLine=true,vspace=0,hspace=0,width=imgWidth(图片宽度),height=imgHeight(图片高度)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var imgTf:TextField = new TextField(); imgTf.wordWrap = true; imgTf.multiline = true; imgTf.height = 100; imgTf.width = 75; imgTf.htmlText = "<img src='" + imgurl + "' hspace='0' vspace='0'></img>";