RE: [Flashcoders] Convert Regular Number back to Hex value?
Yes, perfect, thank you. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Mendelsohn, Michael >>Sent: Friday, September 15, 2006 8:20 AM >>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, 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 >> //need it to display as >>"ff6600" >> >>___ >>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 ___ 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
RE: [Flashcoders] Convert Regular Number back to Hex value?
Mike, Julien, thanks - perfect. Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions >>-Original Message- >>From: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of julien castelain >>Sent: Friday, September 15, 2006 8:14 AM >>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 >>> 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 >>> //need it to display as >>> "ff6600" >>> >>> Thanks, >>> >>> Jason Merrill >>> Bank of America >>> Learning & Organization Effectiveness - Technology Solutions >>> >>> >>> >>> >>> ___ >>> 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 >>> >>___ >>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 ___ 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
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, 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 //need it to display as "ff6600" ___ 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
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 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 //need it to display as "ff6600" Thanks, Jason Merrill Bank of America Learning & Organization Effectiveness - Technology Solutions ___ 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 ___ 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
RE: [Flashcoders] Convert Regular Number back to Hex value?
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, 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 > //need it to > display as "ff6600" > > Thanks, > > Jason Merrill > Bank of America > Learning & Organization Effectiveness - Technology Solutions > > > > > ___ > 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 > ___ 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