for each (var item:XML in event.result.detail) notworking as it should
The attached code gives me 3 alert boxes(as it should), but when I uncomment 1
or both of the commented lines, I only get 1 alert box(the first node of the
returned XML).
var xmlResult:XML = XML(event.result);
var lastX:int = lblStatus.x;
var lastY:int = lblStatus.y + lblStatus.height + 10;
for each(var item:XML in event.result.detail)
{
Alert.show(item.name);
//controlArray.addControl(-1, item.name, "Label", lastX, lastY, -1, null, -1,
-1, -1, null, null, 0, item.value);
//lastY += controlArray[controlArray.length - 1].height + 25;
}
controlArray.alignControls();
|