[flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?
Hi, In the Flex 2 final, how do you implement the ServiceLocator and Delegates? In ServiceLocator, it looks like result="event.call.resultHandler(event)"must be replaced by result="event.token.resultHandler(event)". But how do you implement the delegate? I suppose that we'll see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm currently blocked by this issue... ;) Or am I missing something? Benoit Hediard __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
Re: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?
Hello Benoit, I've been playing around this matter all day long ;) You'll have to type your onResult and onFault to * instead of OnXXX, and cast your event when declaring your var myEvent = CAST(event.result); You actually drop the call (event.call.result) which is not defined in rpc anymore. Hope this helps. - Original Message - From: Benoit Hediard To: flexcoders@yahoogroups.com Sent: Wednesday, June 28, 2006 4:38 PM Subject: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation? Hi, In the Flex 2 final, how do you implement the ServiceLocator and Delegates? In ServiceLocator, it looks like result="event.call.resultHandler(event)"must be replaced by result="event.token.resultHandler(event)". But how do you implement the delegate? I suppose that we'll see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm currently blocked by this issue... ;) Or am I missing something? Benoit Hediard __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?
OK, don't know what I did wrong, but changing event.call to event.token insolve the issue... ;) Benoit Hediard De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] De la part de Benoit HediardEnvoyé: mercredi 28 juin 2006 16:39À: flexcoders@yahoogroups.comObjet: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation? Hi, In the Flex 2 final, how do you implement the ServiceLocator and Delegates? In ServiceLocator, it looks like result="event.call.resultHandler(event)"must be replaced by result="event.token.resultHandler(event)". But how do you implement the delegate? I suppose that we'll see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm currently blocked by this issue... ;) Or am I missing something? Benoit Hediard __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___
RE: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation?
Irrespective of Cairngorm, in addition to the property name changing from call to token, note that FaultEvent and ResultEvent tokens are strongly typed as the dynamic type mx.rpc.AsyncToken Note that this class now allows multiple responders, see documentation for mx.rpc.AsyncToken.addResponder(responder:IResponder):void From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Benoit Hediard Sent: Wednesday, June 28, 2006 10:39 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex 2 final, Cairngorm ServiceLocator/Delegate implementation? Hi, In the Flex 2 final, how do you implement the ServiceLocator and Delegates? In ServiceLocator, it looks like result=event.call.resultHandler(event)must be replaced by result=event.token.resultHandler(event). But how do you implement the delegate? I suppose that we'll see that in the finalcom.adobe.cairngorm.samples.login sample, but I'm currently blocked by this issue... ;) Or am I missing something? Benoit Hediard __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Web site design development Computer software development Software design and development Macromedia flex Software development best practice YAHOO! GROUPS LINKS Visit your group "flexcoders" on the web. To unsubscribe from this group, send an email to:[EMAIL PROTECTED] Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. __,_._,___