Is a colour stated as 0xFF00FF an object?

I am getting a colour from an xml attribute with XPath (colour="0xFF00FF"), and then trying to use that colour with the mc tween class - my_mc.colorTo(bgColour, 1). But it always changes to black.

If I trace() the bgColour, it has the correct value.

If I trace the typeof() the bgColour, it returns object.

What should the type be for this to work?

Thanks for your time.
_______________________________________________
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