views:

87

answers:

2

Hi,

Is there any way to execute arbitrary code in Flash, like javascript's eval()?

I'd like to take some code as a string and execute it, if possible (I understand this is not a great idea),

Thanks

+1  A: 

The eval() function is not part of AS3, but apparently you can hack together something like that:

http://eval.hurlant.com/demo/#app=da4a&757d-selectedIndex=0

Robusto
A: 

You could look at the D.eval library, which allows you to execute a limited set of statements.

http://www.riaone.com/products/deval/index.html

Richard Inglis