سؤال

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.

هل كانت مفيدة؟

المحلول

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/

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top