 
 internal class SubMenuItem
 {
-	public var label:String;
+	public var label:Object;
 	public var listener:Function;
 	public var params:Array;
 }

			tabEnabled = false;
			owner = DisplayObjectContainer(WeaveAPI.topLevelApplication);
			showRoot = false; //test this
		}
		
		private var _uiParent:UIComponent = null;
		
		//		private var subMenu:Menu;
		
		private var subMenuDataProvider:Array = [];
		
		/**
		 * Adds an item to the menu.
		 * @param label The Label string to show when the menu is open
		 * @param listener The function to call when the item is clicked.
		 * @param params An Array of parameters to pass to the listener function.
		 */
		public function addSubMenuItem(label:String,listener:Function,params:Array=null):void
		{
			var menuItem:SubMenuItem = new SubMenuItem();
			menuItem.label = label;
			menuItem.listener = listener;
			menuItem.params = params;
			
			subMenuDataProvider.push(menuItem);
			
			//			subMenu = Menu.createMenu(_uiParent,subMenuDataProvider,false);
			
			
			addEventListener(MenuEvent.ITEM_CLICK,handleSubMenuItemClick);
			
			addEventListener(MenuEvent.MENU_HIDE,function():void{toggleSubMenu = false;});
			
			
		}
		
		/**
		 * Removes all menu items

			
			toggleSubMenu = true;
			
			showSubMenu();
		}
		
		private function closeSubMenu(event:Event):void
