Skip to Content Skip to Search Go to Top Navigation Go to Side Menu


tips: actionscript - convert number to web (rgb) hex, and other bases


Tuesday, January 22, 2008

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!

convert a number to web ( rgb ) hex

var num:Number=0xFF0000
trace(num.toString(16))

you can use Number.toString(base) to convert numbers to pretty much every base you’ll ever need.

elsid out

Powered by ScribeFire.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
Might Be Related

Leave a Reply


In order to submit a comment, you need to mention your name and your email address (which won't be published). And ... don't forget your comment!

Comment Form