문제

I've got a custom mxml component that currently implements IResponder. Passing this IResponder to a function works fine using this.

This, however, includes implementing the public methods result and fault, so I'm asking if it isn't possible to pass a new IResponder to a function, somehow like this:

object.function(someProperty:String, new IResponder());
도움이 되었습니까?

해결책

The Class you're looking for is Responder. New Responder(faultFunction, resultFunction);

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top