# Disable playing movie if detected

**URL:** https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367
**Category:** Uncategorized
**Created:** [May 20, 2003, 10:50pm UTC](https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367 "2003-05-20T22:50:44Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![budfox](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@budfox](https://forum.kirupa.com/u/budfox)
#### Post date: [May 20, 2003, 10:50pm UTC](https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367/1 "2003-05-20T22:50:44Z")

</div>

Hi  
I’m getting into flash and now i’ve got a problem i couldn’t solve.  
There is a button in a navigation i’ve made, which plays a movieclip when you click (the movieclip is going on playing until you click the next botton) and when you rollover the button there is another movieclip  
My problem is that the rolloverclip appears when you already clicked the same button (that means rollover and click sequence are visible at the same time)  
I’m searching for a function that deactivates the rollover effect if the on press effect is already started.

I’ve searched already for a thread with a solution for my problem but didn’t found one. From there i know you guys are practiced and hope you can help me.  
Thanks

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 21, 2003, 2:50am UTC](https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367/2 "2003-05-21T02:50:16Z")

</div>

I’m at work and don’t have flash, so this is just a stab in the dark, but it might just be crazy enough to work. On your button’s on(press) handler, add this:  
[AS]  
\_root.movieClip.removeMovieClip();  
[/AS]  
Hope that does it for you…  
(-:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 21, 2003, 3:04am UTC](https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367/3 "2003-05-21T03:04:31Z")

</div>

[Tutorial [URL=http://www.kirupaforum.com/forums/showthread.php?s=&postid=199778#post199778]Similar question](http://www.kirupa.com/developer/flash5/advroll.htm)

Hope this helps. When animating the states buttons, its best to rework the button as a button movie clip.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [May 21, 2003, 3:05am UTC](https://forum.kirupa.com/t/disable-playing-movie-if-detected/21367/4 "2003-05-21T03:05:25Z")

</div>

well that was ugly

Similar Question

[http://www.kirupaforum.com/forums/showthread.php?s=&postid=199778#post199778](http://www.kirupaforum.com/forums/showthread.php?s=&postid=199778#post199778)
