<slaps forehead> of course...
so the return from XPath is an object/array containing a string, and
I need it as a number.
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.
On 27 Apr 2006, at 13:11, Kerem Gülensoy wrote:
Number
cheers | kerem
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Im Auftrag von Kent
Humphrey
Gesendet: Donnerstag, 27. April 2006 13:54
An: Flashcoders mailing list
Betreff: [Flashcoders] Is a colour stated as 0xFF00FF an object?
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.
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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
_______________________________________________
[email protected]
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