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.
Thank you so much!!!
add all the buttons to a parent movieclip that only exists on the frame(s) where you want them to exist (and be visible).
you can then apply the addChild method to that parent.