Anyone know how i can bake these 3 functions into ONE?
disappear(this.col_mc); // calls function 3 times
disappear(this.in_mc);
disappear(this.id_mc);
here is the code i will insert it to. but this is not calling it three times, only one is getting called.
function disappear(image_mc:MovieClip) {
image_mc.onEnterFrame = function() { // runs onEnterFrame on mc
image_mc._alpha -= 20 // the lower the number, the slower it fades
if (image_mc._alpha <= 0) // if it equals 0
delete image_mc.onEnterFrame // stops and removes
}
}
disappear(this.col_mc); // calls function 3 times
disappear(this.in_mc);
disappear(this.id_mc);
thank u.
.M