# removeMovieClip Problem

**URL:** <https://forum.kirupa.com/t/removemovieclip-problem/269088>\
**Category:** flash\
**Created:** [August 22, 2008, 11:07am UTC](https://forum.kirupa.com/t/removemovieclip-problem/269088 "2008-08-22T11:07:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tolk](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/tolk/32/2496_2.png) [@tolk](https://forum.kirupa.com/u/tolk)\
**Post date:** [August 22, 2008, 11:07am UTC](https://forum.kirupa.com/t/removemovieclip-problem/269088/1 "2008-08-22T11:07:17Z")

</div>

I have an array of MovieClips, when i try and use .removeMovieClip on one of the array items it removes reference to the MovieClip Object but it is still visible on the stage. When I address the MovieClip directly and use removeMovieClip on that it removes referenes and deletes from the stage. Why is this? is there a workaround?

i.e.  
**Scenario 1:**  
myArray = new Array();  
myArray.push(myMovieClip);  
**myArray[0].removeMovieClip();**  
trace(myArray[0]);  
trace(myMovieClip);

traces out undefined, undefined but the movieClip is still visible on stage (and can still interact with)

**Scenario2:**  
myArray = new Array();  
myArray.push(myMovieClip);  
**myMovieClip.removeMovieClip();**  
trace(myArray[0]);  
trace(myMovieClip);

trace out undefined, undefined and the movieClip is removed from stage
