as3.0 文本链接

import flash.text.TextFormat;

dianji_txt.text = "点击跳转";

var testUrl:TextFormat = new TextFormat();

testUrl.url = "www.baidu.com";

testUrl.target ="_blank";

dianji_txt.setTextFormat(testUrl);

posted @ 2012-10-08 00:01  流年亂了浮生  阅读(164)  评论(0编辑  收藏  举报