flex eval第三方组件

Adobe D.eval 组件

http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1609018#

应用指南:
http://www.riaone.com/products/deval/docs/user-guide/ug.html

下载地址:
http://www.riaone.com/download/

还有一个就是:EvalES4UI,不过,这个试了,不好用.

还有一个方法:
this["myFunc"]("a","-b");
参照:"What to do instead of eval()"
http://www.colettas.org/?p=17
var functionName:String = "foo" + bar;
if (this.hasOwnProperty(functionName))
this[functionName]();

还有其他方法,仅供参考:
http://www.riachina.com/showtopic-6695.aspx
虽然flex里没有eval这样的函数,但是可以用反射做到相同的效果,相比java,flex的反射容易实现多了
可以这样
var classReference:Class = getDefinitionByName("组件的类名") as Class;
var instance:Object = new classReference();
再把instance加入到页面容器中...... 

你可能感兴趣的:(java,html,Flex,Adobe,Exchange)