[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread valdhor
import mx.rpc.remoting.RemoteObject; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private var myRemoteObject :RemoteObject = new RemoteObject(); myRemoteObject .destination = genericDestination; myRemoteObject .addEventListener(FaultEvent.FAULT, faultHandler);

[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread valdhor
import mx.rpc.remoting.RemoteObject; import mx.rpc.events.FaultEvent; import mx.rpc.events.ResultEvent; private var myRemoteObject :RemoteObject = new RemoteObject(); myRemoteObject .destination = genericDestination; myRemoteObject .addEventListener(FaultEvent.FAULT, faultHandler);

[flexcoders] Re: programmatically using RemoteObject

2008-06-03 Thread Cato Paus
Here is a part of my way to do it this is only for the connection, you have to use flexComRo.yourjavamethod and you have to create a handler for tath if you need to. you have to put the destination in the remote-config.xml import flash.events.Event; import flash.events.EventDispatcher;