I am trying to do the following:
public class character extends entity {
public const type:int = CHARACTER;
}
public class entity extends Sprite {
public const type:int = INVALID;
public const INVALID:int = -1;
public const CHARACTER:int = 1;
}
But the compiler throws:
Error: A conflict exists with inherited definition dieEngine:entity.type in namespace public. public const type:int = CHARACTER;