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?


your answer after the jump :-)

Enumerations with classes

Need Your Help

xslt select hard coded string with node value

xslt xslt-1.0

I need to add in front of every select value this hard coded string mobile/

How can I declare an object's member field as volatile?

java volatile

If I have a variable of type SomeClass and one of its public members, say public int counter will be accessed by multiple threads, how can I declare volatility on that member field if I'm unable to