You are here

Actionscript

Bit Flags in Actionscript: An Example

It seems that when writing Actionscript I am so accustomed to doing things a certain way that often I forget there may be better ways to accomplish something. This happened recently on a project I am working on. I was creating the classes that defined the various user types and what permissions each type has. I decided that the best way to do this was to create a abstract ‘User’ class and subclass it to create each actual user type.

Content Type: 
Blog Topics: 
Subscribe to RSS - Actionscript