Disable button

I have a button class which disables the current button when it is clicked, the problem is I need to restore the mouseclick event to all the other button or eventually if you work through the menu all the button will be disabled. How can I iterate through all non-clicked items and restore the clicks to the non-clicked buttons?

public function onClick(e:MouseEvent)

    {
        
        
this.parent.gotoAndStop(e.target.name);
 e.target.removeEventListener(MouseEvent.CLICK, onClick);
        

    }