Virtual Machine for scripting in AS3