?
Solved

ChildIndex of MovieClip

Posted on 2012-08-15
1
Medium Priority
?
350 Views
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?

Thanks!
0
Comment
Question by:erzoolander
1 Comment
 
LVL 37

Accepted Solution

by:
CyanBlue earned 2000 total points
ID: 38296564
You'd do something like this.

CyanBlue
setChildIndex(instanceThatNeedsToGoOnTop, numChildren - 1);

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I come across a lot of question about how to access things in the document class from a movieclip, or accessing something from a movieclip in the document class. It took me a while to figure this out but once I did it makes life so much easier. …
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
The goal of the tutorial is to teach the user how to how to record live broadcast.
Suggested Courses
Course of the Month17 days, 4 hours left to enroll

864 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