i have a color pallete where small mc loaded according the number of colors passes this is trhe funtion i use.noCols is a node of an XML object
function listColors(noCols) {
eraseCol();
for (i=1; i<noCols.length; i++) {
this.tempColBox = _root.attachMovie(“mc_colorBox”, “colorBox”+i, i+100);
this.tempColBox._x = colBoxSpace*i+60; //colBoxSpace has a initial value of 100
this.tempColBox._y = 470;
}
if (eraser<noCols.length) {
eraser = noCols.length;
trace("New Eraser "+eraser);
}
and when again called i’m trying erase the mc and load new ones to refresh the color pallette.i’m tryin to erase the loaded mc using this function
}
function eraseCol() {
for (i=eraser; i>0; i–) {
i–;
_root.removeMovieClip(“colorBox”+i);
}
it doesnt work…
can anyone help me
Thanks
:snug: