# Remove Movie Clip?

**URL:** <https://forum.kirupa.com/t/remove-movie-clip/119068>\
**Category:** Uncategorized\
**Created:** [August 11, 2004, 7:05am UTC](https://forum.kirupa.com/t/remove-movie-clip/119068 "2004-08-11T07:05:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![B3NKobe](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@B3NKobe](https://forum.kirupa.com/u/B3NKobe)\
**Post date:** [August 11, 2004, 7:05am UTC](https://forum.kirupa.com/t/remove-movie-clip/119068/1 "2004-08-11T07:05:01Z")

</div>

In my game when you finish the level it goes to a framelable saying welldone bla bla bla… except the enemys still appear moving on the screen? I dont know how to stop that…?

---

<div class="post-metadata">

**Author:** ![APDesign](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@APDesign](https://forum.kirupa.com/u/APDesign)\
**Post date:** [August 11, 2004, 7:07am UTC](https://forum.kirupa.com/t/remove-movie-clip/119068/2 "2004-08-11T07:07:18Z")

</div>

hmm, I think we need some more code. If your enemeis actions are in an onEnterFrame function you can try deleting it

```auto

delete makeEnemiesMove.onEnterFrame;

```

or if the enemy is just a movieclip

```auto

enemy_mc.removeMovieClip();

```

If you post some code, we could help some more 😉

---

<div class="post-metadata">

**Author:** ![B3NKobe](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@B3NKobe](https://forum.kirupa.com/u/B3NKobe)\
**Post date:** [August 11, 2004, 7:19am UTC](https://forum.kirupa.com/t/remove-movie-clip/119068/3 "2004-08-11T07:19:20Z")

</div>

onClipEvent (load) {

function reset(){  
this.\_x=815; //Enemy start position X Axis  
this.\_y=(369); //Enemy start position Y Axis  
enemySpeed=random(4)+1; //Enemy speed  
this.gotoAndStop(1);  
}

reset();

}

onClipEvent (enterFrame) {

if (\_root.spaceship.scrollStart){  
this.\_x-=enemySpeed+\_root.mainGround.groundSpeed;  
} else {  
this.\_x-=enemySpeed;  
}

if (this.\_x\<-15) {  
reset();  
}

if (this.hitTest( \_root.spaceship ) ){  
\_root.gotoAndStop ( “gameOver” );

}

}

---

<div class="post-metadata">

**Author:** ![APDesign](https://avatars.discourse-cdn.com/v4/letter/a/e47c2d/32.png) [@APDesign](https://forum.kirupa.com/u/APDesign)\
**Post date:** [August 11, 2004, 7:25am UTC](https://forum.kirupa.com/t/remove-movie-clip/119068/4 "2004-08-11T07:25:14Z")

</div>

Where is the code that sends you to the next level screen? how many enemies are on screen at once? Where is the code that generates the enemies?
