# Create, delete, create event handlers

**URL:** <https://forum.kirupa.com/t/create-delete-create-event-handlers/204373>\
**Category:** Uncategorized\
**Created:** [October 19, 2006, 9:41am UTC](https://forum.kirupa.com/t/create-delete-create-event-handlers/204373 "2006-10-19T09:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thomaskay](https://avatars.discourse-cdn.com/v4/letter/t/d6d6ee/32.png) [@thomaskay](https://forum.kirupa.com/u/thomaskay)\
**Post date:** [October 19, 2006, 9:41am UTC](https://forum.kirupa.com/t/create-delete-create-event-handlers/204373/1 "2006-10-19T09:41:29Z")

</div>

Hi,

At the moment I create an onEnterFrame function to ease a movie clip into view. I then delete it. I want to be able to recreate a similar onEnterFrame function later to swoosh the movie clip out of view. At the moment weird things happen when I try and do the second onEnterFrame. Am I doing something illegal here?  
I know I could put this all in the original onEnterFrame, but I don’t wanna be wasting processor time doing an if statement every frame to work out if it’s time to swoosh out the movieclip. Or should I not worry because that’s negligible cpu time?

Tom
