Link to home
Start Free TrialLog in
Avatar of Brian Lin
Brian LinFlag for United States of America

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




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();
};

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Zeffer
Zeffer
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial