frankenscarf
03-07-2006, 07:44 AM
Hi again everyone! Hope you're doing well.
So... assuming that I've loaded all my XML properly (and you may indeed assume that) here's the idea:
function chewXML(stuffnjunk) {
for (var i = 0; i<stuffnjunk.firstChild.childNodes.length; i++) {
_root.thingy[i].this = stuffnjunk.firstChild.childNodes[i].attributes.siht;
_root.thingy[i].that = stuffnjunk.firstChild.childNodes[i].attributes.taht;
_root.thingy[i].theOther = stuffnjunk.firstChild.childNodes[i].attributes.rehtoEht;
}
}
Only, I discovered that it doesn't like "_root.thingy[i].this"
It doesn't like the [i] at all and I just don't know how else to target a bunch of thingys onstage.
Now, while I've had success building XML apps and stuff in the past, don't assume I know as much as I probably should. I only just used my 1st array the other week 'cause I'd had no need prior. Just FYI as per my abilities. ;)
Any help greatly appreciated.
So... assuming that I've loaded all my XML properly (and you may indeed assume that) here's the idea:
function chewXML(stuffnjunk) {
for (var i = 0; i<stuffnjunk.firstChild.childNodes.length; i++) {
_root.thingy[i].this = stuffnjunk.firstChild.childNodes[i].attributes.siht;
_root.thingy[i].that = stuffnjunk.firstChild.childNodes[i].attributes.taht;
_root.thingy[i].theOther = stuffnjunk.firstChild.childNodes[i].attributes.rehtoEht;
}
}
Only, I discovered that it doesn't like "_root.thingy[i].this"
It doesn't like the [i] at all and I just don't know how else to target a bunch of thingys onstage.
Now, while I've had success building XML apps and stuff in the past, don't assume I know as much as I probably should. I only just used my 1st array the other week 'cause I'd had no need prior. Just FYI as per my abilities. ;)
Any help greatly appreciated.