To remove a mc

Code attached

Im trying to have a button that would remove the mc that has been inserted from an array.

I believe you can do it with the removeMovieclip action, apply something like this to your button:[AS]on (release) {
_root.emptyMC.removeMovieClip();
}[/AS]

Just change myMC to whatever instance name you’re using.

Thanks for the info…
also, i need a way to keep that mc active while attaching a different mc.

btw i cant get that remove mc bit to work either!!!

Hey, we were just talking about this: http://www.kirupaforum.com/forums/showthread.php?s=&threadid=24401.

Later,
–Elios

I still cant get this thing to work.

I need a button that will remove a mc and i need to know how to keep a mc without having an exsisting one remove from the stage.

:alien:

To remove clips that weren’t attached or duplicated, you have to swapDepths them to a positive depths. For instance 100000 (probably empty).

So…


//and now...the programmer inches closer....
//and closer...and...Alakazam! I'm a magician!
myMovieClip.swapDepths(100000)

Pardon my commentary…it’s late…but that should work.

Later,
–Elios

Ok guys i just cant get this thing to work still.

Heres the fla file. What im trying to do is allow the user to choose a material,

Problem 1) The previous button doesnt get ride of the mc

then give him color option for that perticular material…then when the user clicks next, they have to choose a material for the sleeves…now heres the problem.

Problem 2) the second choice removes the first choice!!. I need the first choice to stay on the stage

Any Help will be realy appreciated

oops sorry the file was too big…goto

thanks