1 Reply Latest reply on May 17, 2009 9:51 PM by Michael Borbor

    How do you assign click event for dynamically-created object?

    kid electric

      This is probably an easy question to answer:


      I'm iterating through an XML List I have created via an HTTP Service to load XML file.  For each object, I want to create a LinkButton that will link to a URL.


      However, since I am creating the LinkButton object in ActionScript instead of MXML, I can't figure out how to assign it a click event, such as navigateToURL()


      How to I assign what the LinkButton should do on mouse click?


      I know someone will be able to answer this, so... thanks in advance!