Guest User

Untitled

a guest
Feb 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.02 KB | None | 0 0
  1. <mx:Script>
  2. <![CDATA[
  3. import flash.display.Sprite;
  4.  
  5. private var dIndex:int;
  6.  
  7. private function swap():void{
  8. dIndex = getChildIndex(this);
  9. setChildIndex(mainTabsHBox, dIndex-1);
  10. //swapChildren(mainTabsHBox, mainPanelContainer);
  11. }
  12.  
  13. ]]>
  14. </mx:Script>
  15.  
  16. <mx:HBox width="100%" horizontalAlign="left" paddingBottom="-25">
  17. <components:MainHeader />
  18. <mx:Spacer width="100%" />
  19. <components:MainNav />
  20. </mx:HBox>
  21.  
  22. <mx:Array id="mainTabs">
  23. <mx:String>Dashboard</mx:String>
  24. <mx:String>Statistics</mx:String>
  25. </mx:Array>
  26.  
  27. <mx:HBox width="100%" id="mainTabsHBox">
  28. <mx:Spacer width="100%" />
  29. <mx:TabBar dataProvider="{mainTabs}" styleName="headTab" paddingRight="15" paddingBottom="-17" />
  30. </mx:HBox>
  31.  
  32. <mx:Panel width="100%" title="Dashboard" id="mainPanelContainer" paddingTop="85" styleName="mainPanel" creationComplete="swap()">
  33. <page:Dashboard id="dashboard" />
  34. </mx:Panel>
Add Comment
Please, Sign In to add comment