# Removing self

**URL:** <https://forum.kirupa.com/t/removing-self/266168>\
**Category:** Uncategorized\
**Created:** [July 16, 2008, 10:44pm UTC](https://forum.kirupa.com/t/removing-self/266168 "2008-07-16T22:44:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mad\_man](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mad\_man](https://forum.kirupa.com/u/mad_man)\
**Post date:** [July 16, 2008, 10:44pm UTC](https://forum.kirupa.com/t/removing-self/266168/1 "2008-07-16T22:44:30Z")

</div>

hello,  
I have a movieclip in flash cs3 that I would like to remove once it hits a certain frame. So what i did was put a keyframe at the end of the animation of the movieclip and in the actions panel i put MovieClip(parent).removeChild(this);  
However sometimes i get a null pointer reference error when I run that. So what would be the best way for me to remove the object once its done animating?

thanks  
-mad\_man
