This works for me (got the information from the flexcoders archive):
var dbMethod:AbstractOperation = myRemoteObject.getOperation
(method_name);
var dbToken:AsyncToken = dbMethod.send(arguments);
dbToken.addResponder(new AsyncResponder(getData, faultHandler));
_rico
On 15.10.2007, at 14:12, Robert Csiki wrote:
I want to have an ActionScript file defining all my RPC services,
and this will be included by everybody would need to perform RPC
calls..
How can I fully define an AbstractService just using ActionScript?
For example, say for RemoteObject, I want to define its methods and
their own result/fault handlers, purely by using ActionScript.
I know this is possible in MXML, via <mx:method> but I wonder if
there's an equivalent for this in ActionScript.
The reason for this is I want to separate the service layer from
the presentation layer at the Flex client level, so I do not want
to have MXML tags for my RPC services spread all over the code (I
want to have some sort of an AS service factory class having all of
these)
Thanks.
...................................
Rico Leuthold
[EMAIL PROTECTED]
+41(0)76 512 05 50
...................................