Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ActionScript for loading XML data in MX

Status
Not open for further replies.

jasonsalas

IS-IT--Management
Jun 20, 2001
480
GU
Hi everyone,

I'm working with an XML structure and trying to get the data passed into a dynamic text box in a Flash MX movie. The XML looks like this:

<?xml version=&quot;1.0&quot;?>
<primary>
<race>
<candidate>
<name>JOHN DOE</name>
<votes>123456</votes>
</candidate>
<candidate>
<name>JANE DOE</name>
<votes>456789</votes>
</candidates>
<!-- MORE CANDIDATES HERE -->
</race>
<!-- ADDITIONAL RACES HERE -->
</primary>

I've tried using the tutorial from FlashKit at and I essentially want to do the same thing, but my XML structure is one node level deeper than used in the tutorial.

I know this has something to do with my branching logic (for loops, or another if... statement), or the way I'm working with the XML object model for ActionScript.

Got any ideas?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top