Initial version

Initial ActionScript 3.0 port from the v0.7.2 JavaScript.