Actionscript equivalent to PHP's create_function()
-
14-10-2019 - |
Question
I was wondering if actionscript had something equivalent to PHP's create_function. Specifically, the ability to create a function from a string is what I am looking for.
Solution
ActionScript 3 does not natively support an eval() function (which is what you're looking for), but there are several libraries which provide it.
D.eval - http://www.riaone.com/products/deval/
AS3 Eval Library - http://eval.hurlant.com/
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow