1 Reply Latest reply on Dec 9, 2010 12:17 AM by Flex harUI

    How to enforce an order in which the Individual tabs are rendered in a tab navigator?

    ShubaV

      I have a TabNavigator with multiple tabs as below.

      On the creationComplete  event, the individual child elements are added as below.

       

      xx.addElement(child1);

      yy.addElement(child2);

      zz.addElement(child3);

       

       

       

      where

      [

       

      Bindable]

       

      public var child1:Child1= new Child1();

      [

      Bindable]

       

      public var child2:Child2= new Child2();

      [

      Bindable]

       

      public var child3:Child3= new Child3();

       

      Issue:

      Is there a way to enforce the order in which these individual tabs are rendered? The order is not predictable and there is a dependency in the application  that one of the tabs is already completed rendered before the other. Please let me know.

       

       

       

      <mx:TabNavigator id="writTabs" x="9.7" y="290.35" width="696" height="466" fontWeight="normal"

      tabWidth="

      90" >

       

       

      <s:NavigatorContent id="debtorNc" label="Debtor" width="100%" height="100%" >

       

       

      <view:WritDebtor id="writDebtor" width="695" height="432"/>

       

       

      </s:NavigatorContent>

       

       

      <s:NavigatorContent id="xx" width="100%" height="100%">

       

       

      </s:NavigatorContent>

       

       

      <s:NavigatorContent id="yy" width="100%" height="100%">

       

       

      </s:NavigatorContent>

       

       

      <s:NavigatorContent id="zz" width="100%" height="100%">

       

       

      </s:NavigatorContent>

       

       

       

       

      </mx:TabNavigator>

       

      </s:Panel>