AS3: more work and fixes