Produces a number that is the effective result of inserting the hex value AA into an existing color value : Color : Graphics Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Graphics » Color »

 

Produces a number that is the effective result of inserting the hex value AA into an existing color value


 

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

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Graphics
» Color