4 Replies Latest reply: Aug 12, 2010 6:10 AM by xvkarbear RSS

    Overlapping buttons issue

    Shed Simas Community Member

      Hey everyone.

       

      I'm using a map as the navigation "menu" between descriptions of items located on the map. Each item has a button, which is enlarged on hover. When the button is clicked, the description of the item shows up and a picture of it substitutes the map (and all buttons disappear).

       

      Here's the issue: some buttons, when enlarged, overlap with other buttons. I am currently using addChild() to ensure the button currently pointed at is on top of any others. The problem is that, when I click the buttons, any buttons I pointed at do not disappear, but stay on top of the picture.

       

      Is there a better way to make the buttons go to the top, one that doesn't keep them on when the frame changes? Or at least, is there a way to make them disappear when the frame changes?

       

      Thanks!