I've done this:

var myResponder : IResponder = new Responder(addAsync(handleSuccess,
1000 ), handleFault);

I actually have my own responder that extends Responder so the above I
new MyResponder, but it works great for me.  I then just pass in the
newly created responder.

Dale


--- In [email protected], "Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> As I mentioned, the service (delegate) method I am calling has an
IResponder
> callback - it doesn't dispatch events.
> 
> On Thu, Aug 21, 2008 at 1:27 PM, Ralf Bokelberg
<[EMAIL PROTECTED]>wrote:
> 
> >   Say you are waiting for an object myDispatcher to dispatch an event
> > myEvent.
> > Then you call myDispatcher.addEventListener("myEvent", addAsync(
> > handleSuccess, 1000 ));
> > Inside handleSuccess you can assert as usually. If handleSuccess is
> > not called within 1000 ms, the test fails.
> >
> > Cheers
> > Ralf.
> >  
> >
>


Reply via email to