Manage Depths in flash and Flex with Action Script
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);
}