xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:s="library://ns.adobe.com/flex/spark">
import mx.controls.Alert;
public function calculateChildren():void {
var myText:String = new String();
myText="The Group container has " + myGroup.numElements + " children.";
myText+="\nThe application has " + numElements + " children.";
Alert.show(myText);
}