private function myFunction(numIn:Number){
trace ("numIn " + numIn);
}
var plan:Object = { "theFunctionName": "myFunction" }
// now use the function
plan.theFunctionName(5);
// should trace out: "numIn 5"
This won’t work, but can you see what I’m trying to do? It’s kind of like a function pointer, or when you pass a function name into an event listener. Thanks.
What you need is: