Try this: var operation:Operation = remoteObject.getOperation(methodName) as Operation; operation.arguments = parameters; var token:AsyncToken = operation.send();
regards, Christophe -- Christophe Herreman http://www.herrodius.com http://www.springactionscript.org http://www.as3commons.org 2009/12/17 MicC <[email protected]> > > > > > Thanks Tracy - that dot keeps on getting me :-) ... I get a "value is not a > function" error for service[str]. The code > > > var str:String = 'Sel_all_mgrs' ; > var token:AsyncToken = service[str] (); > token.addResponder( this.responder) ; > > is inside a Cairngorm Delegate ... but this should not make a difference, > right? (hardcoding var token:AsyncToken = service.Sel_all_mgrs (); works > fine. > > > --- In [email protected] <flexcoders%40yahoogroups.com>, "Tracy > Spratt" <tr...@...> wrote: > > > > The bracket notation replaces the dot notation: > > > > var token:AsyncToken = service[str] (); //remove the dot > > > > > > > > > > > > Tracy Spratt, > > > > Lariat Services, development services available > > > > _____ > > > > From: [email protected] <flexcoders%40yahoogroups.com> [mailto: > [email protected] <flexcoders%40yahoogroups.com>] On > > Behalf Of claudiu ursica > > Sent: Tuesday, December 15, 2009 6:31 AM > > To: [email protected] <flexcoders%40yahoogroups.com> > > Subject: [SPAM] Re: [flexcoders] var token:AsyncToken = service.[str](); > how > > to get this working? > > > > > > > > > > > > It is service.send() at least if your service is a HTTPService instance. > > C > > > > > > > > _____ > > > > From: MicC <chigwel...@...> > > > To: [email protected] <flexcoders%40yahoogroups.com> > > Sent: Tue, December 15, 2009 1:08:22 PM > > Subject: [flexcoders] var token:AsyncToken = service.[str](); how to get > > this working? > > > > > > > > When used conventionally - var token:AsyncToken = > > service.Sel_ all_mgrs( ); - this is service.function, right? > > > > var str:String = 'Sel_all_mgrs' ; > > var token:AsyncToken = service.[str] (); > > token.addResponder( this.responder) ; > > > > What is the correct code to get the above working? TIA, > > > > Mic. > > > > > -- Christophe Herreman http://www.herrodius.com http://www.springactionscript.org http://www.as3commons.org

