Paul

Aug
8

Default Values with Null Coalescing Paul

Actionscript

The null coalescing operator is a rarely used but useful operator for initializing your objects. Often times you’ll have a method that accepts optional arguments. If your arguments are typed to non primitive objects (anything other than Strings, Numbers or Booleans), you’re usually stuck setting their default value of your parameter to null. This makes…

Apr
4

Continuous Integration in Flash and the Feature Switchboard Paul

Actionscript, Flash, Workflow

Recently, I worked on a large-scale game that had to be deployed to production in stages. First came the core gameplay experience, followed by a series of updates over the next few months that added bells and whistles. After the initial deployment it became obvious that bugs would need to be fixed and deployed to…

Dec
12

Useful FDT Templates Paul

Actionscript, Flash

One of the most useful features in FDT is templates. It’s something that FlashBuilder is still missing, and while templates are pretty simple in concept, they are one of the key features that keep me using FDT over its free counterpart. Templates are basically code completion shortcuts that allow you to generate boilerplate code quickly…

Nov
11

Array Constructors in AS3 Paul

Actionscript, Flash

Arrays in as3 are unique among the other built in types because their constructor behaves differently depending on the number and type of arguments passed in. Passing in multiple arguments allows you to initialize the array with the supplied values. However, passing in a single integer value to the constructor specifies the number of elements…