Thanks everyone for your comments and help.

Cheers 

Graham

--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> You can learn more about the * datatype here:
> http://livedocs.macromedia.com/flex/2/docs/00001826.html
> 
>  
> 
> Default parameters are described here:
> http://livedocs.macromedia.com/flex/2/docs/00001834.html
> 
>  
> 
> HTH,
> 
> Matt
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Samuel D. Colak
> Sent: Tuesday, August 15, 2006 9:52 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Flex/Cairngorm Syntax
> 
>  
> 
> The * is an approximation of the Object keyword. Can be any type. Im not
> sure whether the typing is preserved or not but im sure Matt can confirm
> this. In effect event is cast as any object rather than having a
> strongly typed function call. Be aware in doing this though as type
> coercion issues may occur later on when dealing with the result.
> 
> Since all event classes usually subclass from Event, you might use Event
> rather than * for type safety.
> 
> Regards
> Samuel
> 
> On 15/8/06 15:02, "grahampengelly" <[EMAIL PROTECTED]>
> wrote:
> 
>       
>        
>        
>       
>       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