Slaus
Slaus

Reputation: 2236

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?

Upvotes: 1

Views: 1956

Answers (1)

alxx
alxx

Reputation: 9897

for (var i:int = clip.numChildren - 1; i >= 0; i--) {
    clip.getChildAt(i).visible = false;
}

Upvotes: 3

Related Questions