Groups | Blog | Home
all groups > flash actionscript > december 2006 >

flash actionscript : Re: Unload Function..?


Erick Souza
12/3/2006 10:01:08 PM
[quoted text, click to view]

I saw this message only now.

A method removes all doesn't exist, you can use a loop.

for (i=1; i<16; i++){
buttonsArray[(i+1)].removeMovieClip();
};

//or

for(var i:Number = 15; i--;) buttonsArray[(i+1)].removeMovieClip();


--
Erick Souza
vinnio
12/3/2006 11:42:46 PM
kglad
12/3/2006 11:46:48 PM
no, there's no removeAll() type method. you can use the same buttonsArray() to
loop through all the movieclip's stored in that array and remove them with just
a few lines of code:



for(var i=1;i<16;i++){
buttonsArray[i].removeMovieClip();
}
vinnio
12/3/2006 11:52:30 PM
vinnio
12/4/2006 12:14:40 AM
AddThis Social Bookmark Button