# Class destructors?

**URL:** <https://forum.kirupa.com/t/class-destructors/175373>\
**Category:** Uncategorized\
**Created:** [January 13, 2006, 7:13pm UTC](https://forum.kirupa.com/t/class-destructors/175373 "2006-01-13T19:13:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![voxecho](https://avatars.discourse-cdn.com/v4/letter/v/278dde/32.png) [@voxecho](https://forum.kirupa.com/u/voxecho)\
**Post date:** [January 13, 2006, 7:13pm UTC](https://forum.kirupa.com/t/class-destructors/175373/1 "2006-01-13T19:13:59Z")

</div>

Is there anything like this in a compoenent class? i’ve searched and not found it. I need to be able to clean up stuff that my movies create (outside their own timeline) when n.removeMovieClip() is called. the only other way i can think of doing this is with a die() function which is used instead of removeMovieClip() but i try to stick with accepted norms as much as possible.

Any thoughts?

Echo
