# Destroying an instance from inside

**URL:** <https://forum.kirupa.com/t/destroying-an-instance-from-inside/248235>\
**Category:** flash\
**Created:** [January 5, 2008, 2:28pm UTC](https://forum.kirupa.com/t/destroying-an-instance-from-inside/248235 "2008-01-05T14:28:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguelele](https://avatars.discourse-cdn.com/v4/letter/m/6a8cbe/32.png) [@Miguelele](https://forum.kirupa.com/u/Miguelele)\
**Post date:** [January 5, 2008, 2:28pm UTC](https://forum.kirupa.com/t/destroying-an-instance-from-inside/248235/1 "2008-01-05T14:28:32Z")

</div>

Hello again: thank you for the responses in my previous post about destroying instances completely.

Following the same subject, I would like to know if it is posible to destroy an instance using a method in the same class. I have been playing with the “this” keyword with no luck.

What I want is to make a class that display a popUp with all its things encapsulated in the same class, from creation to destruction.

Regards.
