# Delete \[fmx\]

**URL:** <https://forum.kirupa.com/t/delete-fmx/105298>\
**Category:** Uncategorized\
**Created:** [March 24, 2004, 9:28pm UTC](https://forum.kirupa.com/t/delete-fmx/105298 "2004-03-24T21:28:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jagunco](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@jagunco](https://forum.kirupa.com/u/jagunco)\
**Post date:** [March 24, 2004, 9:28pm UTC](https://forum.kirupa.com/t/delete-fmx/105298/1 "2004-03-24T21:28:25Z")

</div>

I have a question about a delete command inside a mouse event, imagine: I have an mc on stage and attach to this mc, some code(flash 5 style)  
onClipEvent(enterFrame){  
if(something){  
something  
delete this.onEnterFRame  
}

}  
but this dosen´t work, but in thae case I put this code in a frame in the timeline (flash mx style)

the code works

Why this works

thanks in advance
