我有AS3创建的文本字段为这样的:(theDesc是通过函数传递的参数)AS3的htmlText是示出标签
var productDescTxt:TextField = new TextField();
productDescTxt.htmlText = theDesc;
productDescTxt.multiline = true;
productDescTxt.wordWrap = true;
productDescTxt.embedFonts = true;
productDescTxt.setTextFormat(productInfoTF);
productDescTxt.x = 10;
productDescTxt.y = productNameTxt.y+productNameTxt.textHeight+15;
productDescTxt.width = 325;
holder.productsTab.addChild(productDescTxt);
theDesc
是HTML内容与字符编码:
例如:
<p><strong>6.1 oz cotton at an affordable price</strong></p>
问题是textField正在显示每个字符。 <p><strong>
等
是否有任何额外的编码需要完成我的目的?
什么theDesc看起来像在您的设置呢? – locrizak 2011-05-20 13:06:11
这是作为一个字符串传递完全像我的例子。 – rson 2011-05-20 13:13:10
这样的<p> <强> 6.1盎司棉价格合理< /强> </p >? – locrizak 2011-05-20 13:16:39