# removeMovieClip on another frame

**URL:** <https://forum.kirupa.com/t/removemovieclip-on-another-frame/238957>\
**Category:** flash\
**Created:** [September 17, 2007, 2:54pm UTC](https://forum.kirupa.com/t/removemovieclip-on-another-frame/238957 "2007-09-17T14:54:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lolomedia](https://avatars.discourse-cdn.com/v4/letter/l/ebca7d/32.png) [@lolomedia](https://forum.kirupa.com/u/lolomedia)\
**Post date:** [September 17, 2007, 2:54pm UTC](https://forum.kirupa.com/t/removemovieclip-on-another-frame/238957/1 "2007-09-17T14:54:30Z")

</div>

Hello everyone,

I’m having difficulties removing a movie clip that i attached early on my first frame. I would like to remove it later on my fifth frame.

here is my code on my first frame

```auto

for (i=1; i<18; i++) {
 this["play"+i].iD = i;
 this["play"+i].onRelease = function() {
  _root.currentItem1.swapDepths(300);
  _root.currentItem1.removeMovieClip();
  _root.currentItem1 = _root.middleStage.attachMovie("audio"+this.iD, "audio"+this.iD, 1);
 };
 this["play"+i].onRollOver = function () {
    this.gotoAndPlay(2);
 };
 this["play"+i].onRollOut = function () {
    this.gotoAndPlay(1);
 };
}

```

here is my code on the fifth frame but the movieclip doesn’t go away 😑  
please advice.

```auto

onEnterFrame = function () {
    trace (_root.currentItem1);
    _root.currentItem1.swapDepths(300);
      _root.currentItem1.removeMovieClip();
}

```
