Question
setRGB(0x"Color from a node in xml")
Hello
I have a map that is going to show a color for each Dep DID. I use setRGB(0x"Color") method but I am having a hard time figuring out how to populate each of the movieclips(different cities and places) with the color that matches the Dep DID.
I have this xml:
<?xml version="1.0" encoding="utf-8"?>
<Deps>
<Dep DID="1" Value="0.56" Color="FF0000">
<Name>Italy</Name>
<Dep DID="11" Value="0.74" Color="00CC33">
<Name>Verona</Name>
<Dep DID="1901" Value="0.74" Color="00CC33">
<Name>Arena</Name>
<Dep DID="1902" Value="0.74" Color="00CC33">
<Name>Plaza</Name>
</Dep>
<Dep DID="21" Value="0.95" Color="FFCC00">
<Name>Milano</Name>
<Dep DID="4"Value="0.95" Color="FFCC00">
<Name>Malpensa</Name>
</Dep>
</Dep>
</Dep>
</Dep>
</Deps>
Can anyone help me please.
I have a map that is going to show a color for each Dep DID. I use setRGB(0x"Color") method but I am having a hard time figuring out how to populate each of the movieclips(different cities and places) with the color that matches the Dep DID.
I have this xml:
<?xml version="1.0" encoding="utf-8"?>
<Deps>
<Dep DID="1" Value="0.56" Color="FF0000">
<Name>Italy</Name>
<Dep DID="11" Value="0.74" Color="00CC33">
<Name>Verona</Name>
<Dep DID="1901" Value="0.74" Color="00CC33">
<Name>Arena</Name>
<Dep DID="1902" Value="0.74" Color="00CC33">
<Name>Plaza</Name>
</Dep>
<Dep DID="21" Value="0.95" Color="FFCC00">
<Name>Milano</Name>
<Dep DID="4"Value="0.95" Color="FFCC00">
<Name>Malpensa</Name>
</Dep>
</Dep>
</Dep>
</Dep>
</Deps>
Can anyone help me please.