Using my own responder with Async
We have our own DAO layer in our application and we have extended Responder with MyResponder. We added some specific features to MyResponder that fits into our framework nicely. Our DAO layer has functions like
public function findByID(id:String, clientResponder:MyResponder, tokenMap:IMap) : void
This framework is heavily code generated and extremely flexible (obviously I'm leaving much out that is not important to this post as well as the fact we are extending at the interface level also).
I want to create a FlexUnit to make the async call to my UserDAO.findById("123", MyResponder); But, Async.asyncResponder returns IResponder so I can not pass that into my DAO which required a MyResponder. So how do I extend FlexUnit so that I can have Async.asyncResponder return a MyResponder object? MyResponder does implement IResponder ultimately so as long as I can somehow make the implementation returned from asyncResponder be a MyResponder then I'm golden as I can simply cast the return to MyResponder.
Rereading this I'm not sure if I explained my need well so hopefully you can understand it.
Thanks.
