# Keeping button rollover after swapDepth()

**URL:** <https://forum.kirupa.com/t/keeping-button-rollover-after-swapdepth/110191>\
**Category:** Uncategorized\
**Created:** [May 13, 2004, 6:04am UTC](https://forum.kirupa.com/t/keeping-button-rollover-after-swapdepth/110191 "2004-05-13T06:04:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omardesign](https://avatars.discourse-cdn.com/v4/letter/o/3ab097/32.png) [@omardesign](https://forum.kirupa.com/u/omardesign)\
**Post date:** [May 13, 2004, 6:04am UTC](https://forum.kirupa.com/t/keeping-button-rollover-after-swapdepth/110191/1 "2004-05-13T06:04:22Z")

</div>

hi,  
I am using buttons inside movieclips, and changing their visual layer by using swapDepth method. But for some reason i loose my rollover button effect when I use swapDepth. whats the solution?  
thanks
