error #1010 button has no properties This is the code the error comes from //The main menu's instance name is yourMenu.//Find and replace yourMenu to match that of your menu instance.stop();var btnNum:int;var highlightNum:int = 1;var menu11Open:Boolean = false;var menu21Open:Boolean = false;var bg:MovieClip = new MovieClip();bg.graphics.beginFill(0x999999, 1);bg.graphics.drawRect(0, 0, stage.stageWidth, stage.stageHeight);bg.graphics.endFill();bg.alpha = 0;yourMenu.addChildAt(bg, 0);//on mouse over menus: set btn number, highlight, open menu, close other menusstage.addEventListener(MouseEvent.MOUSE_OVER, overBtn);function overBtn(evt:MouseEvent):void {switch (evt.target) {case yourMenu.menu11_btn :btnNum=1;highlightBtn();openMenu();menu11Open = true;closeOtherMenus();break;case yourMenu.menu22_btn :btnNum=2;highlightBtn();openMenu();menu21Open = true;closeOtherMenus();break;}};//when user mouse leaves a button, set the highlightstage.addEventListener(MouseEvent.MOUSE_OUT, outBtn);function outBtn(evt:MouseEvent):void