In this particular case, I'd just do
this.sendConnection.send(this.sendName, methodName, rest[0]); In general, I'll shift the other args onto a clone of rest and use apply. ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Ingram Sent: Friday, September 21, 2007 9:33 AM To: [email protected] Subject: [flexcoders] ... (rest) parameter - passing to second function Hi, if I have a function: public virtual function applicationSave(data:String):void { this.send("applicationSave", data, this.commonId, this.creationId); } And private function send(methodName:String, ... rest):void { this.sendConnection.send(this.sendName, methodName, rest); } (applicationSave on the other end expects 3 parameters - data, commonId and creationId) The "rest" parameter in the second function gets sent through as an actual array (so I get an error on the other end of the local connection saying expected 3 parameters but received 1). Does anyone know how I can split up the rest parameter into separate parameters and call a different function? I know this is possible in C/C++ but is it possible in ActionScript? Thanks, Mark

