# Removing swf

**URL:** <https://forum.kirupa.com/t/removing-swf/317774>\
**Category:** Uncategorized\
**Created:** [January 2, 2011, 10:13pm UTC](https://forum.kirupa.com/t/removing-swf/317774 "2011-01-02T22:13:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Evael](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/evael/32/2603_2.png) [@Evael](https://forum.kirupa.com/u/Evael)\
**Post date:** [January 2, 2011, 10:13pm UTC](https://forum.kirupa.com/t/removing-swf/317774/1 "2011-01-02T22:13:53Z")

</div>

Hi,

Please pardon me, if i am not clear with my explanation.

I need to add a new swf, and remove the current one when i click on a button.

Adding a new swf, doesnt seem to be much of a problem, the problem lies in how can i remove the swf file.

In AS2, i most probably can use command like this.unloadMovie(); to get rid of the swf. And since, i am trying to script them in AS3, it leaves me pretty clueless on how to do that.

I tried, removechild(this); , which i thought will work the same for unloadMovie(); doesnt seem to work as well.

Would appreciate if you can give me any reference or tell me how i should do it. Thanks in advance. =)
