# Prevent Restart of MCs which are Playing

**URL:** https://forum.kirupa.com/t/prevent-restart-of-mcs-which-are-playing/81955
**Category:** flash
**Created:** [March 6, 2005, 5:05pm UTC](https://forum.kirupa.com/t/prevent-restart-of-mcs-which-are-playing/81955 "2005-03-06T17:05:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@Nick](https://forum.kirupa.com/u/Nick)
#### Post date: [March 6, 2005, 5:05pm UTC](https://forum.kirupa.com/t/prevent-restart-of-mcs-which-are-playing/81955/1 "2005-03-06T17:05:42Z")

</div>

Ok, so I have this clip I want to play when someone presses the “UP” arrow key but once it’s playing, I don’t want the user to be able to play it again. I wan’t it to finish playing first, before it is replayed using the UP key. The mc is in the second frame of my “Dude1” mc, and here’s my code thus far.

onClipEvent (enterFrame) {  
if (Key.isDown(Key.UP)) {  
\_root.Dude1.play (2);  
}

PS, How can I change the “Key.isDown” command for keys like A, B, C… or 1, 2, 3… ?
