Simplified JavaScript is AS3-based Javascript interpreter. It handles most JavaScript, and you can instantiate native flash objects like MovieClip with the “new” operator and manipulate them. It is useful as an embedded scripting language for games or an exploratory debugging tool.
It differs from JavaScript mostly by some omissions: keywords(delete typeof void as in instanceof is), control structures(for/in, switch/case, do…while, prototype chain / inheritance logic(a() && b() will call both functions; same for a() || b()). Semicolons are required.
Sample
var interpreter:Interpreter; interpreter.doString("code"); trace("Static Registry:\n" + keys(VM.registry)); trace("Globals:\n" + keys(interpreter.vm.vm_globals));