Hi Thomas,

Darron Schall's blog; "Why I don't use Cairngorm's Responder," shows a couple of ways that this can be accomplished.

-TH

--- In flexcoders@yahoogroups.com, Thomas Rühl -akitogo- <[EMAIL PROTECTED]> wrote:
>
>
> Sorry, but I'm still having questions...
> Following the Cairngorm architecture, I created a LoginDelegate class.
> It should call the service and the originating LoginCommand got its
> onFault() and onResult() methods and therefore implementes the Responder
> interface.
>
> However, defining this in the LoginDelegate...
> public function authenticateUser():void
> {
> var call:AsyncToken = service.authenticateUser();
> call.addResponder(IResponder(this.responder.onFault()));
> call.addResponder(IResponder(this.responder.onResult()));
> }
>
> results in both, calling the onFault and onResult methods... why? How
> can I cope with that?
>
> Cheers, Thomas
>
> ------------------------------------
>
> Thomas Rühl
> Design, Programming & Concepts
>
> akitogo OHG
> Hanauer Landstrasse 188
> 60314 Frankfurt
>
> Telefon +49 (0) 69 800 69 445
> Fax +49 (0) 69 800 69 449
> Mobil +49 (0) 179 750 75 87
> E-Mail [EMAIL PROTECTED]
> Web http://www.akitogo.com
>
> ------------------------------------
>
>
>
> JesterXL wrote:
> >
> > You don't need a Delegate. Before, functions were called in the scope of
> > the calling object, but now they are called in the scope of where they
> > are
> > defined.
> >
> > Thus, this:
> >
> > myButton.addEventListener("click", Delegate.create(this, onClick));
> >
> > now becomes:
> >
> > myButton.addEventListener("click", onClick);
> >
> > No more need!
> >
> > ----- Original Message -----
> > From: "Thomas Rühl -akitogo-" [EMAIL PROTECTED]
> > <mailto:thomas.ruehl%40akitogo.com>>
> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>>
> > Sent: Wednesday, July 12, 2006 9:05 AM
> > Subject: [flexcoders] [Flex2] Cairngorm question
> >
> > Hi,
> > I'm just walking through Steven's article about Cairngorm on the Adobe
> > site again and I wonder where the mx.utils.Delegate class can be found.
> > Has it been renamed or replaced in some way? How can I create a Delegate
> > now?
> >
> > Cheers, Thomas
> >
> > ------------------------------------
> >
> > Thomas Rühl
> > Design, Programming & Concepts
> >
> > akitogo OHG
> > Hanauer Landstrasse 188
> > 60314 Frankfurt
> >
> > Telefon +49 (0) 69 800 69 445
> > Fax +49 (0) 69 800 69 449
> > Mobil +49 (0) 179 750 75 87
> > E-Mail [EMAIL PROTECTED] <mailto:thomas.ruehl%40akitogo.com>
> > Web http://www.akitogo.com <http://www.akitogo.com>
> >
> > ------------------------------------
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.com
> > <http://www.mail-archive.com/flexcoders%40yahoogroups.com>
> > Yahoo! Groups Links
> >
> >
>

__._,_.___

--
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




__,_._,___

Reply via email to