On 27 Apr 2006, at 15:00, Zeh Fernando wrote:

trace(bgColour[0]) returns the correct value, but
trace(Number(bgColour[0])) returns NaN - so how do I make it a real number? The help docs say that a string that starts with 0x will be treated as hexadecimal.

Use parseInt() to convert a string into a number


That is exactly what it does, eg 0x735555 becomes 7558485, but that's not what I need. I need it to stay hexadecimal, but to be recognised as a number type. It shouldn't be converted, its type needs to be changed.

Hey, it's Zeh, it's your mc tween class I'm using isn't it? :> Fantastic script...

The docs only have hex numbers used in the colorTo() function, so I assumed that's what I needed - can I use a normal int too?
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to