# Need help using depth w/ complex button

**URL:** <https://forum.kirupa.com/t/need-help-using-depth-w-complex-button/251757>\
**Category:** Uncategorized\
**Created:** [February 12, 2008, 12:24pm UTC](https://forum.kirupa.com/t/need-help-using-depth-w-complex-button/251757 "2008-02-12T12:24:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pooch](https://avatars.discourse-cdn.com/v4/letter/p/dbc845/32.png) [@pooch](https://forum.kirupa.com/u/pooch)\
**Post date:** [February 12, 2008, 12:24pm UTC](https://forum.kirupa.com/t/need-help-using-depth-w-complex-button/251757/1 "2008-02-12T12:24:00Z")

</div>

Hi… I’m very new to flash and AS… I followed the tutorial on complex buttons rollover and rollout

[http://www.kirupa.com/developer/mx2004/button\_effect.htm](http://www.kirupa.com/developer/mx2004/button_effect.htm)

which is great… however I need my buttons to change their stacking/depth order on rollover so that which ever has been rolled over comes to the top. (I have a panel which slides out of each button that I need to slide over the other buttons on the page)

I’m sure it’s really simple but I can’t figure it out. I tried combining that script with the script in the tutorial on stacking… but it didn’t work. As i say, I’m a novice that would really appreciate some help.

Thanks.
