Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <mx:Script>
- <![CDATA[
- import flash.display.Sprite;
- private var dIndex:int;
- private function swap():void{
- dIndex = getChildIndex(this);
- setChildIndex(mainTabsHBox, dIndex-1);
- //swapChildren(mainTabsHBox, mainPanelContainer);
- }
- ]]>
- </mx:Script>
- <mx:HBox width="100%" horizontalAlign="left" paddingBottom="-25">
- <components:MainHeader />
- <mx:Spacer width="100%" />
- <components:MainNav />
- </mx:HBox>
- <mx:Array id="mainTabs">
- <mx:String>Dashboard</mx:String>
- <mx:String>Statistics</mx:String>
- </mx:Array>
- <mx:HBox width="100%" id="mainTabsHBox">
- <mx:Spacer width="100%" />
- <mx:TabBar dataProvider="{mainTabs}" styleName="headTab" paddingRight="15" paddingBottom="-17" />
- </mx:HBox>
- <mx:Panel width="100%" title="Dashboard" id="mainPanelContainer" paddingTop="85" styleName="mainPanel" creationComplete="swap()">
- <page:Dashboard id="dashboard" />
- </mx:Panel>
Add Comment
Please, Sign In to add comment