I've built a flash app that loads an xml file, populates a dropdown, and displays a result based on the user's selection.
I'd like to be able to make selections based on a url variable. i.e Some hardcoded links below the dropdown.
I'm passing the url variable to the flash file just fine, and, for the sake of debugging, I'm displaying the value in a temporary textbox.
Now what do I do? How do I extract the xml data using a url variable? Can anyone point me in the right direction?
Here's an examle of the xml file:
<tz_data>
<Location>
<LocationID>US-SA</LocationID>
<Country>Alabama</Country>
<Region>South Atlantic</Region>
<Landmarks>
<City>Buckstown</City>
</Landmarks>
<StdAbbrev>EST</StdAbbrev>
<DstAbbrev>EDT</DstAbbrev>
</Location>
</tz_data>
I'd like to extract the data for the node by passing a url variable like: "locations.html?LocationID=US-SA"
Again, the url variable is being passed just fine. I'm just not sure where to go from here. Thoughts?
Painted myself in a corner.
CG
I'd like to be able to make selections based on a url variable. i.e Some hardcoded links below the dropdown.
I'm passing the url variable to the flash file just fine, and, for the sake of debugging, I'm displaying the value in a temporary textbox.
Now what do I do? How do I extract the xml data using a url variable? Can anyone point me in the right direction?
Here's an examle of the xml file:
<tz_data>
<Location>
<LocationID>US-SA</LocationID>
<Country>Alabama</Country>
<Region>South Atlantic</Region>
<Landmarks>
<City>Buckstown</City>
</Landmarks>
<StdAbbrev>EST</StdAbbrev>
<DstAbbrev>EDT</DstAbbrev>
</Location>
</tz_data>
I'd like to extract the data for the node by passing a url variable like: "locations.html?LocationID=US-SA"
Again, the url variable is being passed just fine. I'm just not sure where to go from here. Thoughts?
Painted myself in a corner.
CG