Get Flag of an Object