Help! XML woes. [Archive] - Racerplanet Network Forums

View Full Version : Help! XML woes.


chris
10-16-2005, 10:43 AM
I've got some pressing and urgent problems in Flash MX Pro 2004 with XML and the components.

I have a calculation operated by a couple of numeric-stepper components to give a result. That works fine.

Now, based on the result, I'm trying to dynamically set the selectedIndex of 6 other fields based on the calculated result. The result is also going to be found in the XML file as an attribute.

So how can I make it look through the XML file, find the calculated result in the XML file and then say, okay this is the row of information we need to display, and then show all of the information in that row as required?

Again, this is quite urgent!

Thanks if you can assist.

chris
10-16-2005, 11:56 AM
Okay, I might have found a solution.. Instead of using the XML Connector component, I might instead be able to iterate through the XML in a traditional way using a FOR loop, and then set the required info and break out of the loop when a match has been found.

But I still require assistance at the moment until it is definately solved. :help:

way124
10-16-2005, 02:08 PM
Umm, I don't quite understand the question. You calculate some number from an XML doc, do something with the number, and then get another number to store into an XML doc? So you're just trying to read and write an XML doc?

chris
10-16-2005, 03:05 PM
Actually, I've sorted it now.

What it was doing was doing a quick calculation, then take the answer from that and looking for it in the XML document, and when it found it, it'd display all the relevant loading information for that amount of fuel.

Basically, the app is a fuel-usage/loading calculator.