Closed GoogleCodeExporter closed 9 years ago
Statement and MySqlService use IResponder. You should be able to create your own
responder class to handle the responses as needed.
Example:
public class MyResponder implements IResponder
{
public function result(data:Object):void {
var evt:MySqlEvent = MySqlEvent(data);
if ( evt.type == MySqlEvent.RESULT ) {
//handle queries
var list:ArrayCollection = evt.resultSet.getRows();
}
else is ( evt.type == MySqlEvent.RESPONSE {
//handle updates
}
}
public function fault(info:Object):void {
var evt:MySqlErrorEvent = MySqlErrorEvent(info);
//handle error.
}
}
I am not 100% sure I completly understand your problem though.
I am looking into making queries and updates dispatch the same event because
having
both RESULT and RESPONSE events seems to only cause problems.
I do like the idea of using AsyncTokens too, I am also looking into that.
Original comment by macl...@gmail.com
on 26 May 2008 at 1:07
Original comment by macl...@gmail.com
on 27 May 2008 at 4:16
Original comment by macl...@gmail.com
on 27 May 2008 at 5:26
Original comment by macl...@gmail.com
on 9 Jun 2008 at 1:33
Original issue reported on code.google.com by
manuraj....@gmail.com
on 26 May 2008 at 12:56