Don't have Flex 2 open in front of me ( client hearts 1.5 ), but you can I 
think do:

public function onResult(event:* = null):void
{
    ResultEvent(event).result
    // or...
    var yourEvent:ResultEvent = event as ResultEvent;
}

I can't remember if you can cast in the function signature as:

public function onResult ( event:* as ResultEvent = null )

...but, either way, you can also do what I do; keep your own build of 
Cairngorm locally!  I've yet to work on a project where the team didn't 
modify their build of Cairngorm to suit their needs.


----- Original Message ----- 
From: "ben.clinkinbeard" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, July 03, 2006 3:00 PM
Subject: [flexcoders] Re: Cairngorm Responder interface changes


Ah ha. Actually, I had to change them to

public function onResult(event:* = null):void
public function onFault(event:* = null):void

so that they matched the signature exactly. I guess my confusion was
in that I was viewing the :* as meaning the developer could specify
whatever type they wanted. I was seeing * as a kind of superclass when
that is in fact not the case. I have to agree with Jester; I don't
really see the point of this change.

Thanks for your help,
Ben

--- In [email protected], "Clint Modien" <[EMAIL PROTECTED]> wrote:
>
> you need to change these lines
>
> public function onResult(event:ResultEvent):void
> public function onFault(event:FaultEvent):void
>
> to this...
>
> public function onResult(event:*):void
> public function onFault(event:*)void
>
> On 7/3/06, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >   Can someone explain why it is telling me I've implemented the
> > Responder methods with an incompatible signature?
> >
> > public function onResult(event:ResultEvent):void
> > public function onFault(event:FaultEvent):void
> >
> > The signatures shown in the docs are
> >
> > public function onResult(event:* = null):void
> > public function onFault(event:* = null):void
> >
> > What am I missing here?
> >
> > Thanks,
> > Ben
> >
> >
> > --- In [email protected] <flexcoders%40yahoogroups.com>,
> > "der_kotty" <kotty.tm@> wrote:
> > >
> > > Hi,
> > >
> > > I was just wondering why the com.adobe.cairngorm.business.Responder
> > > interface has been changed since it has been released on Adobe Labs.
> > > In Cairngorm 2.0 alpha (org.nevis.cairngorm.business.Responder) the
> > > parameters of the onFault and onResult handlers were typed events
> > > (ResultEvent and FaultEvent).
> > >
> > > Why have the parameters been changed to '*'? Where is the sense in
> > > that? To my opinion this is not really best practice but maybe
> > > there's a really good reason for that? Does anyone know?
> > >
> > > Cheers
> > > David
> > >
> >
> >
> >
>








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











------------------------ Yahoo! Groups Sponsor --------------------~--> 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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