This content has been marked as final. Show 5 replies
The code just seems to get interrupted when one or both of those lines are uncommented.
"|>AoA<| killa" <firstname.lastname@example.org> wrote in message
> 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
> 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)
> //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;
What's the code for controlArray?
It's a rather large class(~500 lines) to post here. And as I said before, it works just fine in other cases.
But here is a pastebin link to it: http://pastebin.com/m52c525e2
I'm sorry that there are no comments.
"interrupted" how? When you step through the code in the debugger, where does it fail?
Well, found the problem :)
Apparently there WERE some bugs in the class: 2 null pointer exception bugs... Now its working perfectly :)
Thanks for the replies