# Delete this.onEnterFrame

**URL:** <https://forum.kirupa.com/t/delete-this-onenterframe/170753>\
**Category:** Uncategorized\
**Created:** [November 29, 2005, 9:51am UTC](https://forum.kirupa.com/t/delete-this-onenterframe/170753 "2005-11-29T09:51:55Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![coop](https://avatars.discourse-cdn.com/v4/letter/c/87869e/32.png) [@coop](https://forum.kirupa.com/u/coop)\
**Post date:** [November 29, 2005, 9:51am UTC](https://forum.kirupa.com/t/delete-this-onenterframe/170753/1 "2005-11-29T09:51:55Z")

</div>

Hi all,

I have a general question about

Delete this.onEnterFrame

as a opposed to

this.onEnterFrame = null

Do these both do the same thing or will there be a difference

The code below, is it best to use  
[AS]delete this.onEnterFrame[/AS]  
or  
[AS]this.onEnterFrame = null [/AS]

[AS]  
logo\_mc.onEnterFrame = function() {  
this.\_alpha += 10;  
if (this.\_alpha\>=100) {  
this.\_alpha == 100;  
delete this.onEnterFrame;  
}  
};  
[/AS]
