PDA

View Full Version : working with indexes



Alber Kidd
March 13th, 2008, 12:45 PM
Is there a way to get the name/position of the last child in a container?

skineh
March 13th, 2008, 01:30 PM
var lastChild = this.getChildAt(this.numChildren - 1);
trace(lastChild.name);
trace(lastChild.x + ", " + lastChild.y);


:thumb2: