rfl
04-01-2002, 10:33 PM
i have a button that duplicates mc's; the code is:
-----------------
on (press) {
i = i + 1;
duplicateMovieClip (ce, "ce" + i, i);//ce is the mc name
}
-----------------
i have another button that i want to delete those duplicates; the code is:
-----------------
on (release) {
while (count >= 0){
removemovieclip(_root.ce + i);
var count;
count= count+1;
}
}
----------------
But this last code doesnt work at all
How can i improve it?
this last code was inspired from here:[url]http://www.macromedia.com/support/flash/ts/documents/random_movie_clip.htm
(but i dont understand it at all)
-----------------
on (press) {
i = i + 1;
duplicateMovieClip (ce, "ce" + i, i);//ce is the mc name
}
-----------------
i have another button that i want to delete those duplicates; the code is:
-----------------
on (release) {
while (count >= 0){
removemovieclip(_root.ce + i);
var count;
count= count+1;
}
}
----------------
But this last code doesnt work at all
How can i improve it?
this last code was inspired from here:[url]http://www.macromedia.com/support/flash/ts/documents/random_movie_clip.htm
(but i dont understand it at all)