package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var colorValue:uint = 0xFFFFCC99; // A sample color colorValue &= 0xFF00FFFF; colorValue |= (0xAA<<16); trace(colorValue.toString(16)); // Displays: ffaacc99 } } }