# Does it really deletes?

**URL:** <https://forum.kirupa.com/t/does-it-really-deletes/220214>\
**Category:** Uncategorized\
**Created:** [March 23, 2007, 6:31pm UTC](https://forum.kirupa.com/t/does-it-really-deletes/220214 "2007-03-23T18:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubenFlash](https://avatars.discourse-cdn.com/v4/letter/r/839c29/32.png) [@RubenFlash](https://forum.kirupa.com/u/RubenFlash)\
**Post date:** [March 23, 2007, 6:31pm UTC](https://forum.kirupa.com/t/does-it-really-deletes/220214/1 "2007-03-23T18:31:31Z")

</div>

```php

_global.movf = function (){
    this.onEnterFrame = function(){
        if(this._currentframe < this._totalframes){
            this.nextFrame();
        }
        else{
            delete this.onEnterFrame;
        }
    }
}

```

Hi! My first post! 🍺

I was wondering if you guys could help me out. As you can see the above code is a global function that plays the movieclip that calls it. My problem is that I dont know if the delete event really happens. I call this function a lot in my movie, so, it would be really important that it would be the less CPU intensive possible. So, does it really deletes??

Thanks! :thumb2:
