AS3 pseudo-enums, strongly typed

Posted May 2, 2006 9:13 pm
Filed under: Articles to remember, AS3, Elsewhere on the web

Since I’ve done most of my “major” programming in C#, one thing I’ve missed in ActionScript is the built-in enumerations which are convenient to use for sets of related constants.

I’ve come up with a couple of ways to create pseudo-enumerations, and Sho Kuwamoto just wrote a post describing his approach to pseudo-enums — which happens to be pretty much the same as my favorite approach to this. (So he saved me the trouble of having to write about it =)

Comments/trackbacks are closed for this post.

Articles by Type

Articles by Topic

Random Reading

Currently...

Adobe MAX 2011 Speaker H. Paul Robertson: Adobe Community Professional

Subscribe