rhannam
03-14-2002, 01:43 AM
what i want to do is remove all duplicatemovieclips that i am creating with a movie clip (named controller) that contains the following
onClipEvent (mouseMove) {
if (draw) {
count ++;
_root.dot.duplicateMovieClip("dot" + count, count)
with (_root["dot"+count]) {
_x = _root._xmouse;
_y = _root._ymouse;
"dot" is a seperate movie clip. this all works fine when i test the movie where ever i click and hold the MC dot is repeated.
now i want to create a "reset" button that will delete all instances of "dot" that i have created.... i made a button and attached the following....
on (press) {
count = 1;
while (count<10){
removeMovieClip ("_root.dot" + count);
count = count +1;
}
}
this only deletes the first 10 MC's that are created and no more.....
any suggestions on how to handle this situation....
i am new so please.... be gentle.... thanks
onClipEvent (mouseMove) {
if (draw) {
count ++;
_root.dot.duplicateMovieClip("dot" + count, count)
with (_root["dot"+count]) {
_x = _root._xmouse;
_y = _root._ymouse;
"dot" is a seperate movie clip. this all works fine when i test the movie where ever i click and hold the MC dot is repeated.
now i want to create a "reset" button that will delete all instances of "dot" that i have created.... i made a button and attached the following....
on (press) {
count = 1;
while (count<10){
removeMovieClip ("_root.dot" + count);
count = count +1;
}
}
this only deletes the first 10 MC's that are created and no more.....
any suggestions on how to handle this situation....
i am new so please.... be gentle.... thanks