# "onEnterFrame"

**URL:** <https://forum.kirupa.com/t/onenterframe/105956>\
**Category:** Uncategorized\
**Created:** [March 31, 2004, 1:56pm UTC](https://forum.kirupa.com/t/onenterframe/105956 "2004-03-31T13:56:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sime](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@sime](https://forum.kirupa.com/u/sime)\
**Post date:** [March 31, 2004, 1:56pm UTC](https://forum.kirupa.com/t/onenterframe/105956/1 "2004-03-31T13:56:17Z")

</div>

hi all!

if i delete the “onEnterFrame” with this code:

myClip.onEnterFrame=function()  
{  
\_\_\_\_if (this.\_x\<300) this.\_x+=5;  
\_\_\_\_else delete this.onEnterFrame;  
\_\_\_\_// to erase it, but you can simply empty it  
\_\_\_\_// else this.onEnterFrame=null;  
}

how can i turn it on again??

thanks!  
sime;
