1. 給一段文字設置一個鏈接
textField.text="<a href='event:status?id=5002&name=張三&id=1'><font color='#0fe404'><u>點擊</u></font></a>"
2. 監聽事件 textField.addEventListener(TextEvent.LINK , onTextClick);
3.
/**點擊事件**/
private function onTextClick(e:TextEvent):void{
//e.text==status?id=5002&name=張三&id=1
var typeT:String = (e.text.split('?')[0]);
//e.text.split('?')=[status,id=5002&name=張三&id=1],
//(e.text.split('?')[1]).split("&")=[id=5002,name=張三,id=1]
}
4.這樣就可以取得Event裏面的所有參數,然後用事件發出去即可。