# Deactivating buttons when another movie clip is ontop

**URL:** <https://forum.kirupa.com/t/deactivating-buttons-when-another-movie-clip-is-ontop/242930>\
**Category:** flash\
**Created:** [October 31, 2007, 7:44pm UTC](https://forum.kirupa.com/t/deactivating-buttons-when-another-movie-clip-is-ontop/242930 "2007-10-31T19:44:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mental](https://avatars.discourse-cdn.com/v4/letter/m/c77e96/32.png) [@Mental](https://forum.kirupa.com/u/Mental)\
**Post date:** [October 31, 2007, 7:44pm UTC](https://forum.kirupa.com/t/deactivating-buttons-when-another-movie-clip-is-ontop/242930/1 "2007-10-31T19:44:55Z")

</div>

Hi, I am creating a flash website and want my buttons to stop operating whilst the portfolio is open and is ontop of the other main buttons. I am just calling a function to add the portfolio as a movie clip ontop of the scene, at the moment you can click through it, using the buttons behind. I’m pretty sure I could sort this out using attachMovie/removeMovie for each button but this seems a very lengthy and time consuming method.

Any Ideas?

Thanks
