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
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
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
You could look at the D.eval library, which allows you to execute a limited set of statements.