Not a whole lot of difference.  But using the more specific type will
provide code hinting and compile-time type checking.  Using the
narrowest type is best prectice.

Tracy

 

________________________________

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Monday, September 08, 2008 11:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] object vs AsyncToken ?

 

Hi,

In the delegate of Cairngorm,what the different between the following
two statements in same function call .(one use object and one use
asynctoken).

Thanks

MK

1

var call : Object = service.GetAll();
call.addResponder( responder );

2

var token:AsyncToken = service.ArrayGetAll();
token.addResponder( responder);

 

Reply via email to