Similar to Mike's thread, is there a function out there someone has
written to convert a regular numerical value back to its equivalent hex
value?
For example:
var myColor:Number = 0xff6600;
myText_txt.text = myColor //shows converted to 16737792, but
toString(16)
Cheers
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Merrill, Jason
Sent: 15 September 2006 13:01
To: Flashcoders mailing list
Subject: [Flashcoders] Convert Regular Number back to Hex value?
Similar to Mike's thread
maybe this could do
var red:Number = 0xFF;
trace(red.toString(16));
ciao
On 9/15/06, Merrill, Jason [EMAIL PROTECTED] wrote:
Similar to Mike's thread, is there a function out there someone has
written to convert a regular numerical value back to its equivalent hex
value?
For example:
Hi Jason, could this be what you're looking for?
var myColor:Number = 0xff6600;
t.text = String(myColor.toString(16));
//ff6600
// or...
//t.text = myColor;
//16737792
Similar to Mike's thread, is there a function out there someone has
written to convert a regular numerical value back to its
To: Flashcoders mailing list
Subject: Re: [Flashcoders] Convert Regular Number back to Hex value?
maybe this could do
var red:Number = 0xFF;
trace(red.toString(16));
ciao
On 9/15/06, Merrill, Jason [EMAIL PROTECTED] wrote:
Similar to Mike's thread, is there a function out there someone has
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Convert Regular Number back to Hex value?
Hi Jason, could this be what you're looking for?
var myColor:Number = 0xff6600;
t.text = String(myColor.toString(16));
//ff6600
// or...
//t.text = myColor;
//16737792
Similar to Mike's thread
6 matches
Mail list logo