![]() |
![]() |
||||||
|
|||||||
| Tags: |
![]() |
|
|||
|
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(); |
| Sponsored Links |
|
|||
|
"|>AoA<| killa" <webforumsuser@macromedia.com> wrote in message news:gcodv9$4ma$1@forums.macromedia.com... > 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(); 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. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise