public void clearChilds() { for (int i = 0; i < children.Count; ++i) { ChildLink link = children[i]; link.parent.removeChild(link.child); } children.Clear(); }
public void add(DisplayObjectContainer parent, DisplayObject child) { parent.addChild(child); ChildLink link = new ChildLink(); link.parent = parent; link.child = child; children.Add(link); }