# Removing embedded swf

**URL:** <https://forum.kirupa.com/t/removing-embedded-swf/305059>\
**Category:** flash\
**Created:** [February 18, 2010, 4:26pm UTC](https://forum.kirupa.com/t/removing-embedded-swf/305059 "2010-02-18T16:26:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![laaptu](https://avatars.discourse-cdn.com/v4/letter/l/76d3ee/32.png) [@laaptu](https://forum.kirupa.com/u/laaptu)\
**Post date:** [February 18, 2010, 4:26pm UTC](https://forum.kirupa.com/t/removing-embedded-swf/305059/1 "2010-02-18T16:26:29Z")

</div>

I have been searching all over about removing embedded swf but couldn’t find any solution.  
Here is my scenario

```php

[Embed(source="hero.swf")]
var Hero:Class;

var hero:Sprite = new Hero();
this.addChild(hero);

//now say after some button click I have to remove this swf

this.removeChild(hero);

//the swf goes away but its sound keeps on playing

```

So is there any method to completely remove it just like Loader.unloadAndStop().  
Any help will be greatly appreciated.
