I was looking for a quick and simple UI device to tie to my application state (or current component) in Flex 4 so that I could easily change states. I was just building a prototype app, so no need to be fancy. Here is a simple mx:togglebuttonbar solution:
-
-
-
<s:states>
-
<s:State name="default"/>
-
<s:State name="admin"/>
-
</s:states>
-
-
<mx:ToggleButtonBar dataProvider="{this.states}"
-
itemClick="this.currentState=event.label" labelField="name"/>
-
-