Apache flex 将新的IResponder传递给函数,而不使整个类实现IResponder

Apache flex 将新的IResponder传递给函数,而不使整个类实现IResponder,apache-flex,mobile,inline-functions,Apache Flex,Mobile,Inline Functions,我有一个自定义的mxml组件,目前实现了IResponder。 使用此函数将此IResponder传递给函数可以正常工作 但是,这包括实现public方法result和fault,因此我想问的是,是否可以将新的IResponder传递给函数,某种程度上如下所示: object.function(someProperty:String, new IResponder()); 你要找的课程是Responder。新响应程序(faultFunction、resultFunction)

我有一个自定义的mxml组件,目前实现了IResponder。 使用此函数将此IResponder传递给函数可以正常工作

但是,这包括实现public方法result和fault,因此我想问的是,是否可以将新的IResponder传递给函数,某种程度上如下所示:

object.function(someProperty:String, new IResponder());

你要找的课程是Responder。新响应程序(faultFunction、resultFunction)