>What should be the return type of this method so that my responder can handle >the results?
Assuming you're using the standard cairngorm model and using the command that called the delegate as the delegates responder, then it's result method takes an Object as it's parameter. So it could be anything you like, but for it to be useful you'd cast it in the command's result method to whatever type you expect to get back. Assuming that does not fail, you then know what it is and how to deal with it. -----Original Message----- From: flexcoders@yahoogroups.com on behalf of Manu Dhanda Sent: Sat 24/05/2008 22:06 To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex + Cairngorm + ASSQL I am trying to use ASSQL in my sample application with Cairngorm. Now, am stuck at the point where my application will talk to the db and the responses returned by db. In my delegate class: public function getCategories( ): void { var call : AsyncToken = this.getCategoriesFromDB(); //instead of service.getCategoriesFromDB(); call.addResponder( responder ); } and in this method this.getCategoriesFromDB(), I 'll talk to db. What should be the return type of this method so that my responder can handle the results. You might like to have a look here too: http://code.google.com/p/assql/wiki/ExampleUsage Any suggestion here will be great. Thanks. -- View this message in context: http://www.nabble.com/Flex-%2B-Cairngorm-%2B-ASSQL-tp17451889p17451889.html Sent from the FlexCoders mailing list archive at Nabble.com. ______________________________________________________________________ This communication is from Primal Pictures Ltd., a company registered in England and Wales with registration No. 02622298 and registered office: 4th Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT registration No. 648874577. This e-mail is confidential and may be privileged. It may be read, copied and used only by the intended recipient. If you have received it in error, please contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its contents to any person. This email has been scanned for Primal Pictures by the MessageLabs Email Security System. ______________________________________________________________________
<<winmail.dat>>