7 Replies Latest reply on May 12, 2009 4:54 PM by Michael Borbor

    Cannot access a property or method of a null object reference

    Seglespaan

      HI,

       

       

      in my application I have a viewstack with 5 views. In each view there is a button.

       

      inside my init() function I set up event handlers for each of the five buttons. However as this function is executed when the application initialises not all the buttons are on stage and thus I get the above error message.

       

      whats the best way to get around this when using view stacks?