Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / December 2006



Tip: Looking for answers? Try searching our database.

Loading XML Variables to Flash

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ski_geek - 12 Dec 2006 18:52 GMT
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>
cinemaguy - 12 Dec 2006 21:39 GMT
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.
The Feldkircher - 15 Dec 2006 19:40 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.