# How to delete movie clips generated from as3 classes

**URL:** <https://forum.kirupa.com/t/how-to-delete-movie-clips-generated-from-as3-classes/319458>\
**Category:** flash\
**Created:** [February 21, 2011, 5:58pm UTC](https://forum.kirupa.com/t/how-to-delete-movie-clips-generated-from-as3-classes/319458 "2011-02-21T17:58:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daragh\_c](https://avatars.discourse-cdn.com/v4/letter/d/dfb087/32.png) [@daragh\_c](https://forum.kirupa.com/u/daragh_c)\
**Post date:** [February 21, 2011, 5:58pm UTC](https://forum.kirupa.com/t/how-to-delete-movie-clips-generated-from-as3-classes/319458/1 "2011-02-21T17:58:57Z")

</div>

Hi Guys,  
Can you take a look at the following;

basicly every time the  
displayDetails() is called, a new class called playerHighlights  
is added to the stage. This works fine.

However, when the displayDetails class is run again, I wish to remove the existing  
playerHighlights from the stage. YOu can see from the playerHighlights method that values are been passed through,  
but i have taken out some code to make this easy.

Any takers ?  
function displayDetails(event:Event):void  
{  
var pe:playerHighlights = new playerHighlights(thisTeam,playerNumber);  
addChild(my\_mc);  
my\_mc.addChild(pe);  
}
