I have something similar to this :
<j:states>
<js:State name="login"/>
<js:State name="loggued"/>
</j:states>
...
<j:Group includeIn="loggued" width="100%" height="100%">
<j:TabBar localId="tabbar" width="100%" change="ev_tab_change(event)">
<j:beads>
<js:ConstantBinding sourcePropertyName="tabBarDataSample" destinationPropertyName="dataProvider"/>
<j:AssignTabContent selectedContentProperty="content">
<j:content>
<j:TabBarContent width="100%" y="80" >
<royale:TB_One/>
<royale:TB_Two/>
</j:TabBarContent>
</j:content>
</j:AssignTabContent>
</j:beads>
</j:TabBar>
</j:Group>
<royale:TB_One/>
and <royale:TB_Two/>
are <j:SectionContent>
I need to trigger an event when TB_One or TB_Two is showing or tabbar selectedIndex was programmatically changed.
I have tried change
event on TabBar, but this is not triggered when changing with selectedIndex
Is there an onShow event or valueCommit ?
(for now tabbar.dispatchEvent(new Event("change"));
do the trick when programmatically change selectedIndex)
Used sdk is 0.9.8
Regards