>>Cheers Jason, >> >>Unfortunately I have no control over the XML produced. >> >>The code you provided didn't work. >> >>"_root._level0.["itemDividerStageRecord"+x]._x = nextItemDivider;"
Uh, I didn't provide that code. That was André. But it should work if you have: _level0.["itemDividerStageRecord"+x]._x = nextItemDivider; Then nextItemDivder should be equal to: _level0.itemDividerStageRecord0._x _level0.itemDividerStageRecord1._x _level0.itemDividerStageRecord2._x _level0.itemDividerStageRecord3._x _level0.itemDividerStageRecord4._x etc. If you have your instances named as such and your loop is working. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-----Original Message----- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Jon >>Sent: Wednesday, August 02, 2006 9:19 AM >>To: flashcoders@chattyfig.figleaf.com >>Subject: [Flashcoders] New to the list - got a question 2 >> >>Cheers Jason, >> >>Unfortunately I have no control over the XML produced. >> >>The code you provided didn't work. >> >>"_root._level0.["itemDividerStageRecord"+x]._x = nextItemDivider;" >> >>I get an error when compiling the actionscript now - >> >>"Expected a field name after '.' operator." >> >>-Jon- >> >>_______________________________________________ >>Flashcoders@chattyfig.figleaf.com >>To change your subscription options or search the archive: >>http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >> >>Brought to you by Fig Leaf Software >>Premier Authorized Adobe Consulting and Training >>http://www.figleaf.com >>http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com