There are a few different people out there that have created different forms of eval in ActionScript all of them are of questionable quality I have found. I have create something more basic that enables you from text within your html to call any method within actionScript but this can only take you so far. What would be really nice is to be able to create methods that are stored in memory that are able to be called in relation to events thrown by different nodes.
You can check these out:
This is the most feature complete project, but also the most buggy, return values dont work unless you use strings, not a very good port to actionscript 3, originally written in as2. Should be rewritten if really used.
http://kinsmangames.com/beinteractive-scripting-engine-bise-as3-port/The code in this is really clean and would love to use this but it doesn't do very much, what it does do it's perfect but you cant do anything more then call method and the size of the compiled library is a little to big for what you get if you ask me.
http://code.google.com/p/edenrr/This project is harder to understand but it is interesting, it can deal with math really well and compiles down really small but doesn't do everything a JS interpreter would need and apparently has limitations on how complex its rules can be.
http://www.sephiroth.it/weblog/archives/2009/01/asyacc_-_first_alpha_release.phpThere are a few others that I have come across in the past that I dont have links handy for, most of the time the projects compiled down to packages that are way to large (over a 200K) or they are not very feature complete.
I'm willing to use other projects as a starting point if it makes sense but the more I look into this I might have to write my own that includes all of the things that we would need. My personal goal for something like this would be to keep it under 55K and have it follow javascripts standards not ActionScripts, I would create bridge objects that allow the javascript to call methods in ActionScript but the two systems would be created within different packages and used independent of each other if needed.
This project would be a huge undertaking, if anyone would like to help or has information that would be good to look at before I get any further on this kind of development I am all ears.
That was a long answer but I've had this in my head the last couple of days, the short answer is all we need is something to do a real actionscript eval and we can hook it up to a script tag in no time. But we dont have a proper method of eval at this time.
-Tyler