Jul 29

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 ..!

Bookmark this page on: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • Reddit
  • StumbleUpon
  • Technorati

Leave a Reply