Is it possible to wrap a variable-length-arguments function in Actionscript?
I tried
private function getString (name:String, ...args):String {
return var_arg_function(name,args);
}
but it didn’t work since sprintf was called with just 1 extra argument, i.e. the Array args.
I’m not aware of sprintf in AS3, but perhaps you’re using a custom function… Try using Function.apply. I haven’t tested this, but something like: