to use eval as in as2
To do this, you need to include the keyword “dynamic” as part of your class declaration, e.g., public dynamic class Foo.
To do this, you need to include the keyword "dynamic" as part of your class declaration, e.g., public dynamic class Foo. Then to make the call, just say:
var functionName:String = "foo" + bar;
if (this.hasOwnProperty(functionName))
this[functionName]();
North America
Europe, Middle East and Africa
Asia Pacific
Copyright © 2011 Adobe Systems Incorporated. All rights reserved.
Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy (updated 07-14-2009).