Eval replacement?

Ok, I know there is no eval function in AS3, and that [‘bla’+bla] is a proper replacement, when it comes to calling dynamically created objects, but this what I need is a little bit different… I have a piece of AS3 code, that I need to execute from a string. If eval was alive, it would do it like this:

var myAsCode:String = 'var myClip:MovieClip = new MovieClip();myClip.name='myClip';trace(myClip.name)';
eval(myAsCode);

Any solutions?

PS: I was already considering parser solution, but it isn’t an option, since code might be very complicated…