6 Replies Latest reply on Jun 7, 2010 2:20 AM by Sebastien V.

    Referencing the objects that have been added in mxml from actionscript

    mesanarapscallion

      Hi,

      let's say I've added a button in mxml in a flex project, and now I want to add an event listener to it from the main actionscript file. How can I reference this button from actionscript? I've tried setting the id and name of the button to "button" and then using the getChildByName("button") method, but it doesn't work. Can someone please help.