My earlier post with code for an abstract class on which to base typesafe enumerations was flawed.
The “enumLock” variable will lock all enumerations. So the first reference to any enumeration based on the class will break all subsequent ones, even of different subclasses.
I guess this just shows inheritance and enumerated types don’t mix!
We really do need a language-level Enum feature in AS3 …


Recent Comments