# Keeping a mask on top

**URL:** https://forum.kirupa.com/t/keeping-a-mask-on-top/186123
**Category:** Uncategorized
**Created:** [April 19, 2006, 5:22am UTC](https://forum.kirupa.com/t/keeping-a-mask-on-top/186123 "2006-04-19T05:22:56Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![modcam](https://avatars.discourse-cdn.com/v4/letter/m/e95f7d/32.png) [@modcam](https://forum.kirupa.com/u/modcam)
#### Post date: [April 19, 2006, 5:22am UTC](https://forum.kirupa.com/t/keeping-a-mask-on-top/186123/1 "2006-04-19T05:22:56Z")

</div>

I have a flash menu where each button brings itself to the top by swapping depths with a number that adds 1 to itself every time the mouse moves over a button. the only problem is, when the user clicks a button, i want an animated mask to make the other buttons disappear. this works fine if i never swap the depths of the buttons. and if i try to set the depth of the mask through actionscript, it still doesn’t mask out the buttons. anyone have any ideas on how to fix this?

thanks in advance
