Remove Movie Clip?

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…?

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


delete makeEnemiesMove.onEnterFrame;

or if the enemy is just a movieclip


enemy_mc.removeMovieClip();

If you post some code, we could help some more :wink:

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” );

}

}

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?