# Buttons Stop Working after another is pressed

**URL:** <https://forum.kirupa.com/t/buttons-stop-working-after-another-is-pressed/299072>\
**Category:** flash\
**Created:** [October 29, 2009, 10:47am UTC](https://forum.kirupa.com/t/buttons-stop-working-after-another-is-pressed/299072 "2009-10-29T10:47:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brainstrainer](https://avatars.discourse-cdn.com/v4/letter/b/4491bb/32.png) [@brainstrainer](https://forum.kirupa.com/u/brainstrainer)\
**Post date:** [October 29, 2009, 10:47am UTC](https://forum.kirupa.com/t/buttons-stop-working-after-another-is-pressed/299072/1 "2009-10-29T10:47:05Z")

</div>

Hi, I have 2 main movie clips, one for the menu bar and one for the content, there is then a movie clip within each one of those, one to hold the set of buttons, and one to hold the content movie clips.

The menu bar has a control to flip between 2 sets of buttons.

the viva content button works fine to begin with, but after the menu bar control is clicked, the content buttons stops working.

Code is as Follows:

All of the code (bar a few stop() flags on cirtain frames) is located on frame 1 of the root, which is the only frame on the root.

barControl.barContent.barUp.addEventListener(MouseEvent.CLICK, menuSwitchHandle);  
barControl.barContent.barDown.addEventListener(MouseEvent.CLICK, menuSwitchHandle);

barControl.barContent.barMenu.vivaBtn.addEventListener(MouseEvent.CLICK, vivaHandle);

function menuSwitchHandle(event:MouseEvent):void {  
barControl.barContent.play();  
}  
function vivaHandle(event:MouseEvent):void {  
contentControl.vivaContent.play();  
}

Thanks for your time,

Kind Regards,

Peter Chapman
