Return to Snippet

Revision: 8347
at September 15, 2008 23:18 by lzyy


Initial Code
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>";

Initial URL


Initial Description
让htmlText显示图片,需要设置wordWrap=ture,multiLine=true,vspace=0,hspace=0,width=imgWidth(图片宽度),height=imgHeight(图片高度)

Initial Title
htmlText显示图片

Initial Tags


Initial Language
ActionScript 3