I usually don't use parseInt for this purpose I usually just cast it as a uint.

i.e.

uint(c);

would work as well.

glad you figured it out.

- Taka

On Tue, Feb 10, 2009 at 5:54 AM, ali drongo <alidro...@googlemail.com> wrote:
> Thanks everyone, Juan, you solved the final part of the puzzle and Muzak
> thanks for your utility class it's very useful.
> Cheers again!
> Ali
>
> On Tue, Feb 10, 2009 at 1:13 PM, Muzak <p.ginnebe...@telenet.be> wrote:
>
>> Maybe this will help?
>> http://muzakdeezign.com/flex3/flex3lib/ColorUtil.zip
>>
>> //docs
>>
>> http://muzakdeezign.com/flex3/flex3lib/docs/com/muzakdeezign/flex/utils/ColorUtil.html
>>
>> regards,
>> Muzak
>>
>> ----- Original Message ----- From: "ali drongo" <alidro...@googlemail.com>
>> To: "Flash Coders List" <flashcoders@chattyfig.figleaf.com>
>> Sent: Monday, February 09, 2009 6:26 PM
>> Subject: [Flashcoders] Converting hex colour numbers back and forth
>>
>>
>>  Hi there, I'm saving a bunch of colours as a string then using this string
>>> later to colour objects in the same way.  Something is going wrong though
>>> as
>>> the colours I am getting back are not the same as the ones I put in.
>>> If anyone could point out where I'm going wrong I'd be really grateful,
>>> I've
>>> googled this and and have checked the help files and as far as I can see
>>> it's correct (though obviously it isn't!).
>>>
>>>
>> _______________________________________________
>> Flashcoders mailing list
>> Flashcoders@chattyfig.figleaf.com
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to