# How to stop an onClipEvent handler

**URL:** https://forum.kirupa.com/t/how-to-stop-an-onclipevent-handler/246353
**Category:** flash
**Created:** [December 10, 2007, 2:18pm UTC](https://forum.kirupa.com/t/how-to-stop-an-onclipevent-handler/246353 "2007-12-10T14:18:50Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![buzzo](https://avatars.discourse-cdn.com/v4/letter/b/45deac/32.png) [@buzzo](https://forum.kirupa.com/u/buzzo)
#### Post date: [December 10, 2007, 2:18pm UTC](https://forum.kirupa.com/t/how-to-stop-an-onclipevent-handler/246353/1 "2007-12-10T14:18:50Z")

</div>

Hi…

First here is my code:

```auto

onClipEvent (enterFrame) {
    if (this.hitTest (_root._xmouse, _root._ymouse, true)) {
        _root.maincell_mc.designcell_mc.nextFrame();
        _root.maincell_mc.printtext_mc.nextFrame();
        _root.maincell_mc.printtext_mc.printWorkText_mc.nextFrame();
    } else {
        _root.maincell_mc.designcell_mc.prevFrame();
        _root.maincell_mc.printtext_mc.gotoAndStop(1);
        _root.maincell_mc.printtext_mc.printWorkText_mc.gotoAndStop(1);
    }
}

```

…Simple really. This event handler tells 3 different movie clips to play forwards and backwards depending if the main movie clip has been rolled over. This all works fine… what I can’t seem to work out is when the movie clip is clicked I would like this event to stop and become disabled.

Any ideas?

Thanks
