An AI Engine for ActionScript 3.0