rs2002
April 1st, 2002, 05:35 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:
www.macromedia.com/suppor...e_clip.htm (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:
www.macromedia.com/suppor...e_clip.htm (http://www.macromedia.com/support/flash/ts/documents/random_movie_clip.htm)
(but i dont understand it at all)