tag:robotlegs.tenderapp.com,2009-10-18:/discussions/questions/1084-how-to-service-result-disambiguationRobotlegs: Discussion 2018-10-18T16:35:43Ztag:robotlegs.tenderapp.com,2009-10-18:Comment/189868712012-09-24T10:10:09Z2012-09-24T10:10:09Z[How to] Service result disambiguation<div><p>WOW, OK!<br>
So I just realized (after many years of Flex+AMFPHP) that you can
actually add events listeners on a specific remote method.</p>
<p>Like so:</p>
<pre>
<code>_ro.authenticate.addEventListener(ResultEvent.RESULT, onAuthenticateResult);
_ro.authenticate(credentials.login, credentials.password);</code>
</pre>
<p>I can't believe I didn't know that.<br>
I couldn't really guess it since the RemoteObject class is dynamic,
so there's no explicit API and documentation... But I feel stupid,
anyway.</p>
<p>Stupid and happy.</p></div>Quentin