[flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread grahampengelly
HiI am just embarking on my first Cairngorm based Flex app. In one of the sample apps there is the following syntaxpublic function onResult(event:* = null):void{}Could somebody please explain exactly what the argument "(event:* = null)" is actually doing. Obviously the argument is called

Re: [flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread Thomas Rühl
Hi Graham, you're exactly right, * is a wildcard, meaning the parameter event that is passed to the function, can be of any type. By default, if not passed in, it is assumed NULL. This also is written somewhere in the docs but at the moment, I can'T remember where it was. Cheers, Thomas

RE: [flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread Darren Houle
, 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: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex/Cairngorm

Re: [flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread Samuel D. Colak
Title: 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

Re: [flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread Darren Houle
an Object type for the arg... but to use any other arg type (like event : Event) the Command would need to implement some totally new Responder class. Darren From: Samuel D. Colak [EMAIL PROTECTED] Reply-To: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Flex

RE: [flexcoders] Flex/Cairngorm Syntax

2006-08-15 Thread Matt Chotin
] 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