1 <?xml version="1.0" encoding="utf-8"?>
3 xmlns:mx="http://www.adobe.com/2006/mxml"
5 xmlns:imocp="imo.components.*"
6 xmlns:fl="http://github.com/lancecarlson/flails"
7 xmlns:commons="imo.components.commons.*"
8 creationComplete="resetMenus()"
9 horizontalScrollPolicy="off" verticalScrollPolicy="off">
13 import imo.components.tooltips.MediaFileToolTip;
15 import mx.core.UIComponent;
16 import mx.events.DragEvent;
17 import mx.managers.DragManager;
19 public static const LEFT_STATES:Array = [];
20 public static const RIGHT_STATES:Array = [];
23 public function changeState(state:String):void {
24 containers.currentState = state;
27 private function tabMouseDown(e:MouseEvent):void{
28 resetMenus(e.target.parent);
29 containers.currentState = e.target.label;
32 private function resetMenus(which:Object = null):void {
34 leftMenu.selectedIndex = -1;
35 rightMenu.selectedIndex = -1;
37 which.selectedIndex = -1;
41 private function onDragEnter( event:DragEvent ):void{
42 containers.currentState = "queue";
43 DragManager.acceptDragDrop( UIComponent(event.target) );
46 private function updateMenu(page:Object):void{
47 if (page.hasOwnProperty("menu")) {
48 this[page.menu + "Menu"].selectedIndex = page.menuIndex;
56 <!--<commons:TransparentBorderCanvas styleName="sideCanvas" x="-10" width="30" height="210"
57 horizontalScrollPolicy="off" verticalScrollPolicy="off"
58 customBorderThickness="2" borderAlpha=".6" cornerRadius="10">-->
59 <mx:Canvas styleName="sideCanvas" horizontalScrollPolicy="off" verticalScrollPolicy="off" x="-8" width="30" height="174" >
60 <mx:TabBar id="leftMenu"
62 dataProvider="{LEFT_STATES.reverse()}"
68 mouseDown="tabMouseDown(event);"
69 toggleOnClick="true"/>
71 <!--</commons:TransparentBorderCanvas>-->
73 <imocp:MainContainer x="29" y="0" id="containers" width="376" height="473"/>
74 <mx:Canvas x="412" styleName="sideCanvas" horizontalScrollPolicy="off" verticalScrollPolicy="off" width="40" height="155">
75 <mx:TabBar x="22" y="5" id="rightMenu" mouseDown="tabMouseDown(event);"
76 styleName="rightSideMenu"
77 dataProvider="{RIGHT_STATES.reverse()}"
81 dragEnter="onDragEnter(event)"
82 toggleOnClick="true"/>
84 <!--</commons:TransparentBorderCanvas>-->