Been looking everywhere to find out if there is a way to do this:
btn.onRelease=function(){
[INDENT]nowDoDis(“hello”,fireThis())
[COLOR=Silver]//tried to use nowDoDis(“hello”,“fireThis()”)[/COLOR][/INDENT] }
function nowDoDis(param1:String, param2:function??){
*//want to fire param2
param2
//or
this[param2]
////???///////
*
}
function fireThis(){
*//some actionScript code
trace(“i hope this works”)
}
Anyone know Of a way to accomplish this without having to use an if/then statement
Arigato.