Jul 29 2008

Overriding methods with … arguments in as3

Tag: codedenis @ 5:31 pm

For example, if you want to override the NetConnection::call method, you should do:

override public function call(command:String, responder:Responder, ...parameters):void {
 parameters.unshift(command, responder);
 super.call.apply(this, parameters);
}

thanks to the good old prototype ..!