Leading the front will be something like:
myObject.parent.setChildIndex( myObject, myObject.parent.numChildren - 1);
Forward will be something like:
myObject.parent.setChildIndex( myObject, myObject.parent.getChildIndex( myObject ) + 1);
Setting a specific z index will be:
myObject.parent.setChildIndex( myObject, newZIndex);
cleverbit
source share