[flexcoders] Re: using RemoteObjects in actionscript 2

2006-08-22 Thread Kashif Noorani
This works in AS2: var service : mx.remoting.RemoteObject = new mx.remoting.RemoteObject(/amfgateway, serviceName, serviceResponder, null, new mx.services.Log(1, RemoteObject_AMF));

[flexcoders] Re: using RemoteObjects in actionscript 2

2006-08-17 Thread Mark Piller
Kashif, Let's assume you need to invoke method foo() on a destination XYZ. First, make sure your destination is defined in remoting-config.xml. Then the AS code could look as the following: var ro:RemoteObject = new RemoteObject(); // set the destination for the remote object ro.destination =

[flexcoders] Re: using RemoteObjects in actionscript 2

2006-08-17 Thread Kashif Noorani
Hi Mark, Thanks a lot for your quick answer. Only problem is that I am on Flex 1.5 and there doesn't seem to be a destination property on the RemoteObject :( --- In flexcoders@yahoogroups.com, Mark Piller [EMAIL PROTECTED] wrote: Kashif, Let's assume you need to invoke method foo() on a