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.
|||
Try this:

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
eluding me.
|||
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
help.
|||
you’re welcome.

Related posts:

  1. uint to hexadecimal format
  2. color string to uint
  3. Fault conversion, from Number to String and vice versa.
  4. Can not convert 17 digit Number to String
  5. Accessing object by dynamically creating it’s id?

Related posts brought to you by Yet Another Related Posts Plugin.

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 free icons download Suffusion theme by Sayontan Sinha

Featuring Recent Posts WordPress Widget development by YD