PDA

View Full Version : Help Removing a movie clip from the stage


SpeedRacer
03-01-2007, 06:05 PM
I am haveing a problem getting a MC to be removed from the stage when the onRelease event is used.

Here is my AS Im useing

//---SET UP GRAPHIC SET AIR WARRIOR
var mc:MovieClip = this.attachMovie("86754AirWarrior", "86754AirWarrior", 1);
mc._x = 20;
mc._y = 240;
mc._xscale = 25;
mc._yscale = 25;
mc.onRelease = function(){
removeMovieClip("86754finishLine2", "86754finishLine2", 14)
var mc:MovieClip = this.attachMovie("86754AirWarrior2", "86754AirWarrior2", 15);
mc._x = 1000
mc._y = 640
mc._xscale = 260
mc._yscale = 260
}




//---SET UP GRAPHIC SET FINISH LINE
var mc:MovieClip = this.attachMovie("86754finishLine", "86754finishLine", 2);
mc._x = 20;
mc._y = 325;
mc._xscale = 25;
mc._yscale = 25;
mc.onRelease = function(){
removeMovieClip("86754AirWarrior2", "86754AirWarrior2", 15);
var mc:MovieClip = this.attachMovie("86754finishLine2", "86754finishLine2", 14);
mc._x = 1000
mc._y = 300
mc._xscale = 260
mc._yscale = 260
}