Expand my Community achievements bar.

use RemoteObject method defined in MXML from AS

Avatar

Level 1
I need to use a RemoteObject from a custom component written
as an ActionScript class. I can easily define the RemoteObject
service and it's methods in MXML, but I don't know how to acces
that definition from a class insite an ActionScript package. For
example imagine
this
example on Adobe's site on component creation using a RemoteObject
to do the calculations. I don't know how to define methods of a
remote service in AcionScript, only in MXML. Thanks.
1 Reply

Avatar

Level 1
It seems I don't have to defint the methods, just create a
RemoteObject, set it's dource and destination, and call the methods
on it. (services-config.xml is already set up.)



Still, any comments are welcome. Or tutorials on the web.
Like how to set per-method event handlers. Now I can only set it
globally on the RemoteObject.