文章详情

TextFormat.target 属性

2013/1/3 12:52:09    小编:胡金金个人网站

var myformat:TextFormat = new TextFormat();
myformat.url = "http://www.Adobe.com";
myformat.target = "_blank";

this.createTextField("mytext",1,100,100,200,100);
mytext.multiline = true;
mytext.wordWrap = true;
mytext.border = true;
mytext.html = true;
mytext.text = "Go to adobe.com";
mytext.setTextFormat(myformat);

AS2.0里的AS3.0也能使用

个人资讯推荐