03-07-2008

ActionScript Remove all movieclips from root (or any other object)

This loop removes iterates through an object and removes all movieclips from it.


for (var i in _root){
	if (typeof(_root[i]) == "movieclip"){
		_root[i].removeMovieClip();
	}
}

Comments:

Your comment:

»

 

[x]