Sorry mate, that's my bad! you want .apply, not .call! My fault, I should've double-checked before I posted!
http://livedocs.adobe.com/flex/3/langref/Function.html#apply() -Josh On Wed, Jun 25, 2008 at 12:57 PM, dev.bits <[EMAIL PROTECTED]> wrote: > yeah I had tried that ! :) > > But it doesn't work ... I thought it was the problem "this" but > clearly this doesn't work : > flash.external.ExternalInterface.call.call(null,arguments); > doesn't work . > but > flash.external.ExternalInterface.call.call(null,"alert","whoa"); > > works. So I guess we come back to the same problem... arguments passes > the args as 1 argument (an array) whereas we want to pass the each > member of the arguments array as an argument each. > > > Regards > Devdatta > > --- In [email protected], "Josh McDonald" <[EMAIL PROTECTED]> wrote: > > > > Ah, you didn't say it was a static function :) > > > > Just put "null" instead of "this" and it should work. > > > > -Josh > > > > On Wed, Jun 25, 2008 at 12:36 PM, dev.bits <[EMAIL PROTECTED]> wrote: > > > > > > > > Doesn't work for me .. says "this" not accessible ... > > > > > > See this code for e.g : > > > class package1.subpackage.newExternalInterface extends > > > flash.external.ExternalInterface{ > > > public static function call(methodName:String):Object{ > > > trace("called newExternalInterface.called"); > > > > > > return > > > flash.external.ExternalInterface.call.call(this,arguments); > > > //Compiler says this not accessible from this scope > > > } > > > } > > > > > > Regards > > > Devdatta > > > > > > > > > > > > --- In [email protected], "Josh McDonald" <dznuts@> wrote: > > > > > > > > Try: > > > > > > > > super.functionName.call(this, argsArray); > > > > > > > > -Josh > > > > > > > > On Wed, Jun 25, 2008 at 11:14 AM, dev.bits <dev.akhawe@> wrote: > > > > > > > > > Hi > > > > > > > > > > If I extend a class and in the subclass override a function of the > > > > > base class I can call the original base class function using > > > > > super.functionname > > > > > > > > > > But what do I do if this function excepts variable number of > > > arguments ? > > > > > > > > > > How do I pass all the arguments present in the arguments array > to the > > > > > super function? > > > > > > > > > > public override function a(){ > > > > > super.a( // here I want to pass ALL the arguments that were passed > > > > > // to this function > > > > > > > > > > > > > > > Regards > > > > > Devdatta > > > > > > > > > > > > > > > ------------------------------------ > > > > > > > > > > -- > > > > > Flexcoders Mailing List > > > > > FAQ: > http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > > > Search Archives: > > > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! > Groups > > > > > Links > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > "Therefore, send not to know For whom the bell tolls. It tolls for > > > thee." > > > > > > > > :: Josh 'G-Funk' McDonald > > > > :: 0437 221 380 :: josh@ > > > > > > > > > > > > > > > > ------------------------------------ > > > > > > -- > > > Flexcoders Mailing List > > > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > > > Search Archives: > > > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > > > Links > > > > > > > > > > > > > > > > > > -- > > "Therefore, send not to know For whom the bell tolls. It tolls for > thee." > > > > :: Josh 'G-Funk' McDonald > > :: 0437 221 380 :: [EMAIL PROTECTED] > > > > > > ------------------------------------ > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups > Links > > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]

