# Removing a moveclip

**URL:** <https://forum.kirupa.com/t/removing-a-moveclip/305906>\
**Category:** Uncategorized\
**Created:** [March 5, 2010, 2:25pm UTC](https://forum.kirupa.com/t/removing-a-moveclip/305906 "2010-03-05T14:25:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Holyyloh](https://avatars.discourse-cdn.com/v4/letter/h/f0a364/32.png) [@Holyyloh](https://forum.kirupa.com/u/Holyyloh)\
**Post date:** [March 5, 2010, 2:25pm UTC](https://forum.kirupa.com/t/removing-a-moveclip/305906/1 "2010-03-05T14:25:54Z")

</div>

What i want to happen seems quite simple yet i keep getting the error “access of undefined property” when what i’m trying to remove is in fact defined in the same class but it obviously cannot gain access to it.

I want to remove a MovieClip from the stage once a button has been clicked.  
The MovieClip is created in the same class as my button function i created. The button works fine but whatever i try to put within the function to remove the MovieClip cause the error i mentioned at the start.

Any pointers of the different ways of doing this? Any help would be appreciated.
