Search code examples
actionscript-3enums

Enums in AS3 / Flash / Flex?


One thing I really like about AS3 over AS2 is how much more compile-time type-checking it adds. However, it seems to be somewhat lacking in that there is no type-checked enumeration structure available. What's a good (best / accepted) way to do custom enumerated types in AS3?


Solution

  • your answer after the jump :-)

    Enumerations with classes