Is there a way to create a string from the name of a function? This is probably not a very descriptive question, sorry, but ultimately what I’m looking for is this:
function foobar():void {
trace(maybe(someArg)); // foobar
}
function another():void {
trace(maybe(someOtherArg)); // another
}
function maybe(arg):String {
return [do something here];
}
So I’m looking for what maybe() would do, or of course a more compact technique if possible.
Thanks!