How to remove duplicate attach movies on stage?
Hi,
I am currently making a starting game and is still learning actionscript. So far what I did was I have a different set of buttons
For button01 - I added this script to it
on (release) {
i = i + 1;
_root.attachMovie("flipitem01","flipitem01new" + i, i);
}
what happens is when i click button01 I duplicate the flipbed02 movieclip and call it on stage as many times the user wants it.
I set this item on different buttons to call in other duplicate movie clips. Everything is as I want it to be. But the problem is I want to create a clear button.
I want to be able to clear all the duplicated items that is called onto the stage. I tried removeMovieClip but it's not working.
The only one working I have tried was sto add a _root.unloadMovie(); on the clear button but the problem is it clears everything in the stage including the background and stuffs. So any help is appreciated!
