5 Replies Latest reply on Aug 12, 2010 7:57 PM by NickDF__

    States, how to access components not included in the current state?

    foolish3737 Level 1

      I have two state set up for my app. I have a creationComplete that fires my init function and then a bunch of listeners are added here and there throughout the app. The only problem I'm running into is that one component is not included in the default state, but I'm trying to add a listener to that component on my init function, and, it gives me a runtime error saying that the component (which isn't included in the default state) is a null object.


      How can I force the instantiation of that component when the application is created?


      My best guess was to set a creationPolicy on 'something' to instantiate 'all' components.