Brian Lin
asked on
Remove attach movie clips
Hi,
There is code that attach image from library. It will attach image every-time user on Mouse up. There is also a clear movie clip button. My question is how to remove all the attach movie clips on the stage at once.
Thanks
There is code that attach image from library. It will attach image every-time user on Mouse up. There is also a clear movie clip button. My question is how to remove all the attach movie clips on the stage at once.
Thanks
i = 5;
_root.onMouseUp = function() {
this.attachMovie("dot","dot"+(i+1),i++,{_x:_xmouse, _y:_ymouse});
}
};
// 3. BUTTON "ERASE":
// --------------------
buttonErase.onPress = function() {
_root["dot"+(i+1)].removeMovieClip();
};
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.