ChildIndex of MovieClip

Posted on 2012-08-15
Last Modified: 2012-08-27
I have a number of library instances I'm bringing dynamically on to the stage via addChild procedures.  But - there's a movieclip that always remains on the stage set on the timeline.

I'd like that movieclip to always "be on top", and never be obscured by the instances added on the stage via AddChild.

What would the ChildIndex syntax be to accomplish this?

Question by:erzoolander
    1 Comment
    LVL 37

    Accepted Solution

    You'd do something like this.

    setChildIndex(instanceThatNeedsToGoOnTop, numChildren - 1);

    Open in new window


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Training Course: Adobe Photoshop CC 2015

    Photoshop has become the standard in image manipulation among professional photographers and graphic designers. This course covers exam objectives for the Adobe Certified Associate (ACA) certification.

    While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
    The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
    The goal of the tutorial is to teach the user how to how to record live broadcast.
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now