Implementing Enumerated Types in ActionScript 3

This is about implementing an enum in AS3 with value restriction ( i.e. the programmer should be unable to diminish or add to the set of values) and type safety.

We’ll implement the data type as a Class. In order to keep the programmer from adding to the set of values, we need to disallow invocation . . . → Read More: Implementing Enumerated Types in ActionScript 3