Skip to content

Instantly share code, notes, and snippets.

@alecmce
Created August 6, 2010 19:04
Show Gist options
  • Save alecmce/511797 to your computer and use it in GitHub Desktop.
Save alecmce/511797 to your computer and use it in GitHub Desktop.
// hex definition
public static const FLAG_1:uint = 0x1;
public static const FLAG_2:uint = 0x2;
public static const FLAG_3:uint = 0x4;
public static const FLAG_4:uint = 0x8;
public static const FLAG_5:uint = 0x10;
public static const FLAG_6:uint = 0x20;
public static const FLAG_7:uint = 0x40;
public static const FLAG_8:uint = 0x80;
// bit-shift definition
public static const FLAG_1:uint = 1 << 0;
public static const FLAG_2:uint = 1 << 1;
public static const FLAG_3:uint = 1 << 2;
public static const FLAG_4:uint = 1 << 3;
public static const FLAG_5:uint = 1 << 4;
public static const FLAG_6:uint = 1 << 5;
public static const FLAG_7:uint = 1 << 6;
public static const FLAG_8:uint = 1 << 7;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment