Try the following:
public function requestData(service : String, ...params) : void
{
var applyArgs:Array = params && params.length > 0
? [service].concat(params)
: [service];
nc.call.apply(nc,applyArgs);
}
I have not tested this particular piece of code, but since the second argument that Function :: apply uses is an array that will be converted to a parameter list, this should work (unless I made some kind of stupid mistake ... no help the compiler back in SO!).
, applyArgs service . , : - , .