While flash has an eval function it does not work the same way, as can be seen at this link: http://www.macromedia.com/support/flash/action_scripts/functions/eval.html.
I can't think of how to do it offhand, but you can probably find information there about what you want to do.
I can't think of how to do it offhand, but you can probably find information there about what you want to do.