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" array? --- In [email protected], "caffeinewabbit" <[EMAIL PROTECTED]> wrote: > > 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 [email protected], "Alex Harui" <aharui@> wrote: > > > > Something like: > > > > > > > > override function foo(... rest):void > > > > { > > > > rest[1] = "bar' > > > > super.foo.apply(this, rest) > > > > } > > > > > > > > ________________________________ > > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of caffeinewabbit > > Sent: Thursday, April 03, 2008 8:06 AM > > To: [email protected] > > Subject: [flexcoders] Overriding a rest parameter > > > > > > > > I have a method in a parent class that I need to override in a child, > > but the parent's version of the method uses a rest (...) parameter as > > its only argument. > > > > Since the argument arrives in the overridden class as an array, how do > > I then pass that data on to the original method (i.e. > > super.function())? Is there any way to indicate that an array should > > be treated like a rest parameter? > > > > I've since solved my application specific issue using a different > > approach, but I wasn't able to find anything that addressed the > > problem above in the Docs, through Google, or here on Flexcoders. > > >

