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], "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] [mailto:[email protected]] On
> Behalf Of claudiu ursica
> Sent: Tuesday, December 15, 2009 6:31 AM
> To: [email protected]
> 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]
> 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.
>