Created
August 6, 2010 19:04
-
-
Save alecmce/511797 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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