Year: 2007

Faking constants in Actionscript 2.0

Most people get around Actionscript 2.0’s lack of constant variables by just naming member variables in all capital letters and remembering not to alter their value. This works okay, assuming you obey the rules, but what if you want to enforce a constant value so that it cannot be changed during runtime. Edgar De Loa […]