Hey guys, i want to make flash read the xml and pull out the data so that it shows up dynamically in flash. I have done this before but im having trouble with this type of xml file. See below.
What i would like to do is say for instance i want to pull three different types of data.
“Outage_2_Staff” , “Residential_3_Staff”, and “Arrangements_38_Staff”. then i want to take the <value> & <color> data and output it through dynamic text. how can i tell flash what type of data to pull when all the parent names are the same.
P.S. i can’t change the xml data. so im stuck with this format.
if someone can post an example of a working script that would be very awesome. thanks guys!
<RealTimeData>
<RTData>
<Name>Outage_2_Staff</Name>
<Value>128</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Commercial_94_Staff</Name>
<Value>15</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Residential_3_Staff</Name>
<Value>10</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Arrangements_38_Staff</Name>
<Value>94</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Outage_2_AVL</Name>
<Value>0</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Commercial_94_AVL</Name>
<Value>1</Value>
<Color>Green</Color>
</RTData>
<RTData>
<Name>Residential_3_AVL</Name>
<Value />
<Color>Green</Color>
</RTData>
</RealTimeData>