# Stop MovieClip

**URL:** <https://forum.kirupa.com/t/stop-movieclip/35068>\
**Category:** flash\
**Created:** [November 10, 2003, 7:33am UTC](https://forum.kirupa.com/t/stop-movieclip/35068 "2003-11-10T07:33:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lordsamot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lordsamot/32/356_2.png) [@lordsamot](https://forum.kirupa.com/u/lordsamot)\
**Post date:** [November 10, 2003, 7:33am UTC](https://forum.kirupa.com/t/stop-movieclip/35068/1 "2003-11-10T07:33:29Z")

</div>

lets jsut say like were randomly moving a moveclip around how do i click on it and stop it?

---

<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:** [November 10, 2003, 7:36am UTC](https://forum.kirupa.com/t/stop-movieclip/35068/2 "2003-11-10T07:36:32Z")

</div>

Care to give some more information ? About the random moving script, perhaps ;)😛

---

<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:** [November 10, 2003, 7:39am UTC](https://forum.kirupa.com/t/stop-movieclip/35068/3 "2003-11-10T07:39:04Z")

</div>

its jsut a the random movement script of this site with the lil witches hats but yeah ive got the script on my main timeline and on the movieclip the call function and yeah so when i click on it i jsut want the moveclip to stop movement

---

<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:** [November 10, 2003, 7:56am UTC](https://forum.kirupa.com/t/stop-movieclip/35068/4 "2003-11-10T07:56:30Z")

</div>

Delete all the codes from your movieclips, give them the instance names cone1, cone2, … cone15 for example. Then place this underneath all your code in the timeline:

```auto

for(i=1;i<=15;i++){
this["cone"+i].onEnterFrame = move
this["cone"+i].onRelease = function(){
delete this.onEnterFrame
}
}

```

Untested, but should work.
