# Removing and stopping a .flv from playing

**URL:** <https://forum.kirupa.com/t/removing-and-stopping-a-flv-from-playing/329798>\
**Category:** Uncategorized\
**Created:** [October 17, 2012, 12:50pm UTC](https://forum.kirupa.com/t/removing-and-stopping-a-flv-from-playing/329798 "2012-10-17T12:50:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DK1120](https://avatars.discourse-cdn.com/v4/letter/d/278dde/32.png) [@DK1120](https://forum.kirupa.com/u/DK1120)\
**Post date:** [October 17, 2012, 12:50pm UTC](https://forum.kirupa.com/t/removing-and-stopping-a-flv-from-playing/329798/1 "2012-10-17T12:50:16Z")

</div>

Hi there  
would be able to help, I have this script that loads in an .flv and I want to beable to remove(unload movie) on a click. I’m using this code to remove the movie,

> function destroyMe(object:\*):void {  
> if(object.parent != null){  
> var parentDisplayObjectContainer = object.parent;  
> parent.removeChild(object);  
> }  
> }

is there another way to remove a .flv and stop playing  
Whats happening is when the movie first removes then you go back to play and then remove again it seems like it loads a new .flv of the movie, in a sense then running two .flv’s causing the movie to slow down when playing. Can anyone offer any solutions for this?  
Many thanks for your help!
