Iterate over the children:
var totalHeight : int = 0
for (i: int = 0; int < container.numChildren; i++){
totalHeight += container.getchildAt(i).height;
}
That code is written in a browser and untested.
It sounds like you're using a Tile style layout where tiles may be of different, unknown, widths. Is that true? Is that even possible? If so, you may not want the total height of the container's children, but the total height of all the container's rows. IF so, just keep track of the 'y' variable.
Something like this:
var totalHeight : int = 0
var largestRowHeight : int = o;
var previousY : int = 0;
for (i: int = 0; int < container.numChildren; i++){
largestRowHeight = Math.max(largestRowHeight), container.getchildAt(i).height);
if(previousY != container.getchildAt(i).y){
totalHeight += largestRowHeight;
largestRowHeight = 0;
}
previousY = container.getchildAt(i).y;
}
The last bit of code is even rougher than the first bit.