/ Published in: ActionScript 3

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var colour:uint = 0x9900CC; var r:uint = colour >> 16; var g:uint = colour >> 8 & 0xFF; var b:uint = colour & 0xFF; trace("r: "+r); trace("g: "+g); trace("b: "+b); // OUTPUT // r: 153 // g: 0 // b: 204
URL: http://theflashblog.com/presentations/bytearrays.html
Comments
