# Can you cancel

**URL:** <https://forum.kirupa.com/t/can-you-cancel/182106>\
**Category:** Uncategorized\
**Created:** [March 15, 2006, 3:41pm UTC](https://forum.kirupa.com/t/can-you-cancel/182106 "2006-03-15T15:41:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gregmax17](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gregmax17/32/2243_2.png) [@gregmax17](https://forum.kirupa.com/u/gregmax17)\
**Post date:** [March 15, 2006, 3:41pm UTC](https://forum.kirupa.com/t/can-you-cancel/182106/1 "2006-03-15T15:41:26Z")

</div>

Is there a way to cancel a function? I seem to be stuck on my own code. I am using an onClipEvent(enterFrame) to call a function to detect input from the user, to move a character around the screen, and on another layer (but in the same frame) I am calling that function. I want to cancel this ‘after’ I do a setInterval.

Is there a way? Or what I said was vague question? Please help.
