On Thu, Jun 4, 2009 at 7:21 PM, Jonathan Ackerman
<[email protected]> wrote:

> I have been running into a IUIComponent issue on a component that is
> loading and I have determined that I need to delay the loading of this
> component a second or so.
>
> The component sits on a canvas with a tab navigator and I want to delay
> the load of this component until the specific tab is clicked on. I was
> thinking that I need to set the show event of the tab to run a function
> that would launch the component but I don't the syntax for doing this.

Is this component inside the TabNavigator? If yes, you have to set the
TabNavigator's creationPolicy property to "auto" (default) and the
component will be initialized only when the tab is clicked.

If the component is outside the TabNavigator, then you can just add
the component in the change event of the TabNavigator.

  <TabNavigator change="someContainer.addChild(new Component1())" />

You can also look at the states feature (AddChild).

Manish

Reply via email to