Flex User

March 18, 2008

eval in AS3

Filed under: Flex — Tags: , , , — nsdevaraj @ 7:55 am

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]();
reference

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.