0 Replies Latest reply on Jul 20, 2011 9:40 AM by wenshou

    How to use saprk textArea TextEvent.link

    wenshou

        Hello

        I had a question . I used Saprk textArea   .

       

      I want to catch TextEvent.link ..but is not work...Please help me....

       

         private function init():void
         {
         // Util.showAlert("TalkMsgPage","dd");
          textArea.addEventListener(TextEvent.LINK , onhandleLink,true);
          textArea.textFlow.addEventListener("yourSelfEvent",clickAHander);

          textArea.selectable = true;

         }
        
         private function clickAHander(event:FlowElementMouseEvent):void{
          Util.showAlert("TalkMsgPage","ddd");
         } 
        
         private function onhandleLink(e:TextEvent):void
         {
          Util.showAlert("TalkMsgPage","dd");
          
         }