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.
Can anyone help me with this? Thanks.
var c1:uint = uint(xmlColor.color_1.toString());
Thanks for your help, but unfortunately that method didn’t
work. I imagine there can be a simple solution to this, but it’s
then you have white space in your string. strip it and retry
using rb’s code (though the toString() method is unneeded.
Hi, thanks to both of you. I… I just noticed I was
forgetting something in my code and thus not accessing the correct
xml tag. The example I provided should work fine.
Sorry for wasting your time and again, thank you for your
- uint to hexadecimal format
- color string to uint
- Fault conversion, from Number to String and vice versa.
- Can not convert 17 digit Number to String
- Accessing object by dynamically creating it’s id?
Related posts brought to you by Yet Another Related Posts Plugin.