955
1
I’m trying to get XML to work in Flash, and I just can’t make it work :-\
I tried making something more advanced, but it just failed miserably, so for now I’m settling for something simpler.
myXml = new XML();
myXml.load("myxml.xml");
myXml.ignoreWhite = true;
myXml.onLoad = function() {
trace(myXml.firstChild.nodeValue);
};
<myxml>Hello</myxml>
I just see null in the output window…
system
2
[AS]myXml.onLoad = function() {
trace(myXml.firstChild.firstChild);
};[/AS]
system
3
- Your XML file cannot just be 1 node, it has to have a parent node that houses the childnodes…
<parentnode>
<myxml>Hello</myxml>
</parentnode>
Then after you fix that change myXml.firstChild.nodeValue to myXml.firstChild.firstChild
You can read up on what nodeValue really is in the AS Reference in Flash MX.
[edit]kax always beats me :([/edit]
system
4
Yeah… I love you for being so slow. :love:
system
5
So you love me for my mental disability 
system
6
Nope, I love you because you’re smart!! :love:
… Being slow is just a plus. 
system
7
*Originally posted by kax *
**Nope, I love you because you’re smart!! :love:
… Being slow is just a plus.
**
LOL, that’s a load of crap 
Hey kax, why do we always end up thread hijacking?
[size=1]don’t answer that…[/size]
[size=1]::end transmission::[/size]
system
8
Yeah, I figured it out after a while. Thanks a lot for helping me anyway 