Hide all children of CS5 object in AS3 code
I have MovieClip, created开发者_如何学编程 with CS5. Is there a way to hide (set visible = false) all it's children (objects which lie on movie clip) within AS3 code?
for (var i:int = clip.numChildren - 1; i >= 0; i--) {
clip.getChildAt(i).visible = false;
}
精彩评论