# Re-initialising onEnterFrame after deleting onEnterFrame

**URL:** <https://forum.kirupa.com/t/re-initialising-onenterframe-after-deleting-onenterframe/204700>\
**Category:** flash\
**Created:** [October 22, 2006, 5:57pm UTC](https://forum.kirupa.com/t/re-initialising-onenterframe-after-deleting-onenterframe/204700 "2006-10-22T17:57:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brucelines](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@Brucelines](https://forum.kirupa.com/u/Brucelines)\
**Post date:** [October 22, 2006, 5:57pm UTC](https://forum.kirupa.com/t/re-initialising-onenterframe-after-deleting-onenterframe/204700/1 "2006-10-22T17:57:22Z")

</div>

Hello to all the actionscript guru’s!

I have this thing where when I click this other thing which is controlled by a different thing which gets deleted after I click the other thing and I would like to know if I can sort of undelete the different things thing??? :devious:

Okay, now in English.

I have some movieclips that move using an onEnterFrame. When you click on a movieclip, I stop the movement by deleting the onEnterFrame. Is there a way to re-initialise the onEnterFrame to get the movieclips moving again?

A thanks in advance for everyone who reads this question

---

<div class="post-metadata">

**Author:** ![Brucelines](https://avatars.discourse-cdn.com/v4/letter/b/da6949/32.png) [@Brucelines](https://forum.kirupa.com/u/Brucelines)\
**Post date:** [October 25, 2006, 12:19pm UTC](https://forum.kirupa.com/t/re-initialising-onenterframe-after-deleting-onenterframe/204700/2 "2006-10-25T12:19:45Z")

</div>

Ahhh yeah, that little bit of code worked fine. Thanks for that!

Out of curiosity, what does the [COLOR=blue]Void[/COLOR] after the function name do?

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [October 25, 2006, 9:26pm UTC](https://forum.kirupa.com/t/re-initialising-onenterframe-after-deleting-onenterframe/204700/3 "2006-10-25T21:26:54Z")

</div>

_Void_ is the return type of the function. It signifies that the function doesn’t return anything. In AS1/AS2, that doesn’t really do much for you except for help with error checking, but it’s probably not a bad habit to get into.
