all groups > flash data integration > december 2006 >
You're in the

flash data integration

group:

Loading XML Variables to Flash


Loading XML Variables to Flash ski_geek
12/12/2006 6:52:26 PM
flash data integration:
I have my XML data loading into my SWF OK.
However, is there any way to call that tag name instead of the child node
number?
So instead of something like this:
myDate_txt.text = my_xml.firstChild.childNodes[2];

Can do something like this?
myDate_txt.text = my_xml.firstChild.myDate;

Is that possible? I know that does not work the way it is written, but is
there code that you can do something like that?


And how do you call the next child (cousin) if you have an XML document like
this:

<people>
<friend>
<name>Bob</name>
<age>39</age>
</friend>
<cousin>
<name>Sally</name>
<age>29</age>
</cousin>
</people>



Re: Loading XML Variables to Flash cinemaguy
12/12/2006 9:39:30 PM
You can take at look at a couple of the articles of i have on my site. It has both of these things that you are talking about. Let me know if you need further explanation.

Re: Loading XML Variables to Flash The Feldkircher
12/15/2006 7:40:42 PM
Hi

Read the Flash Help article related to the XPath API Class, and your XML Parsing will be much easier.
Or go http://www.macromedia.com/go/xpathapi.

Hope it helps
AddThis Social Bookmark Button