you can compose event dispatcher onto anything. On Fri, Aug 22, 2008 at 6:08 AM, dbronk <[EMAIL PROTECTED]> wrote:
> 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] <flexcoders%40yahoogroups.com>, "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. > > > > > > > > > > > -- j:pn \\no comment

