[flexcoders] Re: Overriding a rest parameter

2008-06-19 Thread Dave Kong
Cool, this answers one of my questions as well. Now, taking this a step further, how do I override something like the logger.info which has the signature info(message:String, ... rest)? info.apply(this, rest) obviously won't work. Do I need to insert the message param to the head of the "rest" ar

[flexcoders] Re: Overriding a rest parameter

2008-06-19 Thread Dave Kong
Nevermind. I'm an idiot. This does it: override function info(... rest):void { logger.info.apply(this, rest); } --- In flexcoders@yahoogroups.com, "Dave Kong" <[EMAIL PROTECTED]> wrote: > > Cool, this answers one of my questions as well. > > Now, taking this a step further, how do I override s

[flexcoders] Re: Overriding a rest parameter

2008-04-04 Thread caffeinewabbit
Alex, you are the king of everything that is awesome, thank you very much! I keep forgetting that functions are objects just like virtually everything else in AS3, and now that you've pointed apply() out, I see where its mentioned in the docs. Thanks for reminding me of that as well. --- In flexc