Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Compile and run:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<s:states>
<s:State name="state1"/>
<s:State name="state2"/>
<s:State name="state3"/>
</s:states>
<s:controlBarContent>
<s:Button label="1. go to state2" click="currentState='state2'" />
<s:Button label="2. go to state3" click="currentState='state3'" />
</s:controlBarContent>
<s:TabBar dataProvider="
{vs}" />
<mx:ViewStack id="vs" y="25">
<s:NavigatorContent label="Tab1" includeIn="state3">
<s:Label text="Tab1" />
</s:NavigatorContent>
<s:NavigatorContent label="Tab2" includeIn="state2,state3">
<s:Label text="Tab2" />
</s:NavigatorContent>
<s:NavigatorContent label="Tab3">
<s:Label text="Tab3" />
</s:NavigatorContent>
</mx:ViewStack>
</s:Application>
2. Click "1. go to state2"
3. Click "2. go to state3"
Actual Results:
Two tabs show as selected
Expected Results:
Only one tab should be selected
Workaround (if any):