0 Replies Latest reply on Dec 5, 2011 1:58 PM by Chris Manuel

    TextEvent.LINK in mx:HTML

    Chris Manuel Level 1

      I'm setting the text in an HTML control by location. Within the html file I've placed the following text event: <a href="event:Learning_Objects_List.html" >Help</a>

       

      I've added the listener:  myHTMLField.addEventListener(TextEvent.LINK, linkHandler)

       

      The handler:

       

      public function linkHandler(evt:TextEvent):void {

           trace(evt.text);

      }

       

      Nothing happens when I click the Help link.

       

      This works fine in a regular textfield but I'm getting nothing in the Flex component. I'm thinking it just isn't supported.

       

      ----

       

      Here's what I want to do. I have two HTML components and I want links in one to load files into the other. If there is a simpler way or if the approach shown above can be made to work I'm all ears.

       

       

      Thanks,

       

      Chris