1 Reply Latest reply on Jan 26, 2016 1:29 PM by kglad

    AS3 - Bring an object to the front without using "addChild"

    dallen2882

      I need to create a menu holding buttons that expand & overlap on rollover. These menu buttons jump the user to the correct frame on the timeline. In order to ensure that the buttons do not get covered up by each other I am using the "Bring Object to the Front" snippet.

       

      The code snippet is bringing the selected button to the front of the stage as expected, but is doing this by using "addChild". This means that the buttons that are rolled over are now visible from every frame on the timeline. Is there any way to bring a button to the front of the stage without replicating is via an added child?

       

      See screenshots for a visual.

      addChild1.PNGaddChild2.PNG

       

       

      Thank you so much!!!