maguskrool
Technical User
Hello. I have an xml file containing color values to be applied in a series of shapes in my swf. However, when I try to assign the values, it doesn't work, it recognizes only a string and assigns the value 0 to the colors.
my_color.xml
The xml is then parsed into a variable called xmlColor.
.fla
my_color.xml
Code:
<color_list>
<color_1>0xFFBB00</color_1>
...
<color_n>0xAA33FF</color_n>
</color_list>
The xml is then parsed into a variable called xmlColor.
.fla
Code:
var c1:uint = xmlColor.color_1;
trace (xmlColor.color_1) //0xFFBB00
trace (c1) //0