Manage Depths in flash and Flex with Action Script

Posted by Vineela | Flash, Flex, as3, utils | Wednesday 1 April 2009 12:21 am

This code show how to do ‘Bring Front’

Call the function with (“object u want to brign front”, “display object it is nested”)

function move_to_top(tarObj, targContaner) {
  // This will move the current object to the topmost z-index
 targContaner.setChildIndex(tarObj, targContaner.numChildren-1);
}