Displays a sequence of buttons along the top and makes a different child visible in the central
part when each button is pressed.
protected var _selected:Tab
protected var _tabs:Array
public function addTab(name:String, button:Button, contents:DisplayObject):void
Adds a new tab.
Parameters
| name:String — identifies the tab for later selection
|
| |
| button:Button — the button to place in the top row that will select the contents when pressed
|
| |
| contents:DisplayObject — the object to show when the button is pressed
|
protected function handleButtonClick(event:ButtonEvent):voidParameters
public function selectTab(name:String):void
Selects a tab by name.
Parameters