1 Reply Latest reply on Jan 3, 2007 1:14 PM by ntsiii

    FYI

    michael_ramirez44 Level 1
      I have a ComboBox located inside the second Tab of a Tab Navigator. I make a remote call and try to set the ComboBox enabled property to false/true and I get a Run-Time error. As it turns out the since I have not view the second tab a least once the ComboBox control is null. So it looks like Flex does not create all the controls in your mxml file upon loading.
        • 1. Re: FYI
          ntsiii Level 3
          That is correct, and it is by default and by design, in order to make the initial load of the application faster. It is referred to as "deferred instantiation".

          The "dirty" fix is to set creationPolicy="all" on the TabNavigator, but this has negative results on the percieved performance of your app, especailly on start-up.

          Instead of doing what you are trying, have the data call result event set an instance variable, and bind the comboBox enabled property to that.

          Tracy