2 Replies Latest reply on Sep 4, 2011 8:54 PM by Kristin95762

    how to add eventListener to button in a view state

    Kristin95762 Level 1



      Have a main.mxml with an init() function in which I want to add an eventListener for a button. The button exists in other than the opening state, therefore my app crashes.


      How do I define an actionScript listener for this button? I'm used to doing this in mxml but I'm converting my work to classes.