Graham

I see someone else answered your question, but... you might also want to 
look at Darron's page which talks about the Cairngorm Responder vs the Flex 
IResponder:

http://www.darronschall.com/weblog/archives/000234.cfm

The onResult(event:* = null):void method you asked about tells me you're 
using/learning the "pure" Cairngorm architecture which employs a Cairngorm 
Responder to get the data from the Delegate/Service back to the initial 
Command.  Darron's page explains an alternative, IResponder, that is already 
part of the Flex API.  It does the same thing, but it's more flexible, 
simpler to use, and easier to understand (just my opinion).  I'm using it in 
all my new Cairngorm apps.  I have yet to find a reason not to.

Darren




>From: "grahampengelly" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [flexcoders] Flex/Cairngorm Syntax
>Date: Tue, 15 Aug 2006 13:02:35 -0000
>
>Hi
>
>I am just embarking on my first Cairngorm based Flex app. In one of the
>sample apps there is the following syntax
>public function onResult(event:* = null):void
>{
>
>}
>Could somebody please explain exactly what the argument "(event:* =
>null)" is actually doing. Obviously the argument is called 'event', I
>have got that far. Is the asterisk a wildcard for the type, and if so
>why, and is the null a default value if the argument is not supplied?
>
>I have had a look around the web and the docs but can't find any
>explanation of this syntax. What is more, I am not getting it to work
>but as I don't understand what it is supposed to be I'm not sure where
>the problem lies.
>
>Thanks for your help in advance...
>
>Graham
>
>
>




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to