Actionscript – Synchronous calls using RemoteObject

actionscriptapache-flex

Is there a way to make synchronous calls using RemoteObject in Flex?

Best Answer

All IO in Flex is asynchronous. The typical pattern to deal with this is to use an AsyncResponder. For instance:

var t:AsyncToken = remoteObject.methodCall();
t.addResponder(new AsyncResponder(resultEvent, faultEvent));