Redispatching a ResultEvent with the AS3 Lightweight Remoting Framework

If you want to redispatch a ResultEvent when using Danny Patterson's AS3 Lightweight Remoting Framework, you have to modify the ResultEvent class to override the clone() method.

So, if you want to do something like this:

private function resultHandler(event:ResultEvent):void

Just add the following method to com.dannypatterson.remoting.ResultEvent:

public override function clone():Event
   return new ResultEvent(type, bubbles, cancelable, result);

Ditto for the FaultEvent.