AS3 setChildIndex to front

actionscript-3flashmovieclip

Is there a way to send a specific movieClip to the front of all other movieClips on stage?

I know about setChildIndex, but I can't figure out a way to to calculate the top position dynamically.

Best Answer

You can use setChildIndex() with numChildren.

setChildIndex(childClip, numChildren - 1);
Related Topic