当前位置: 代码迷 >> HTML/CSS >> TextField html字符支持鼠标点符号击
  详细解决方案

TextField html字符支持鼠标点符号击

热度:676   发布时间:2012-10-15 09:45:25.0
TextField html字符支持鼠标点击

  1. 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);
  2. trace(MyTxt.getImageReference('futou'));
  3. MyTxt.getImageReference('futou').addEventListener(MouseEvent.CLICK,function(e){
  4. trace('heheheheheheh');
  5. })
  6. MyTxt.getImageReference('futou').addEventListener(MouseEvent.MOUSE_OVER,function(e){
  7. trace('over');
  8. })

  相关解决方案