4 Replies Latest reply: Apr 6, 2011 7:29 AM by kglad RSS

    bring invisible buttons to top?

    Mark Embrey Community Member

      I'm working on a project that has 2 invisible buttons created on the stage.

       

      Other items are placed on the stage with actionscript 3.

       

      I am unable to bring the buttons to the front or top.

       

      I have tried:

       

          button_a.setChildIndex(numChildren – 1);
          button_b.setChildIndex(numChildren – 1);  

       

      I have tried explicitly re-placing the buttons after other hadling, like this:

       


          button_a.width = 56;
          button_a.height = 26;
          button_a.x = 2;
          button_a.y = 2;

       

          button_b.width = 56;
          button_b.height = 26;
          button_b.x = 2;
          button_b.y = 32;

       

      None og these are working.

       

      Ideas anyone?

       

      thanks,

       

      Mark