开发者

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;
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜