TextField html字符支持鼠标点符号击
TextField html字符支持鼠标点击MyTxt.htmlText快去找bfont color#FF0000a hrefevent:X_100_Y
TextField html字符支持鼠标点击
- MyTxt.htmlText="快去找<b><font color='#FF0000'><a href='event:X_100_Y_100'>【圣城铁匠】</a></font></b>,他为你做好了一把<b><font color='#0000FF'><img src='FuTou' align='left' id='futou'><a href='event:Id_200'>【屠龙宝刀】</a></font></b>不要犹豫了,快去试试看锋利程度!";MyTxt.addEventListener(TextEvent.LINK,showit);
- trace(MyTxt.getImageReference('futou'));
- MyTxt.getImageReference('futou').addEventListener(MouseEvent.CLICK,function(e){
- trace('heheheheheheh');
- })
- MyTxt.getImageReference('futou').addEventListener(MouseEvent.MOUSE_OVER,function(e){
- trace('over');
- })