>>> On Wed, May 3, 2006 at  4:33 PM, in message
<[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: 
> Is it possible to do this ?

Yes !
Turns out MM released code and docs for this a while back @ 
http://www.adobe.com/products/flashremoting/downloads/components/

The only download is a Win32 MSI file (why ?!?), which I managed to crack open 
to read the API docs inside it.

Here is an example AS2 class that allows setting the endpoint URL at runtime. 
It's my first one and I'm fairly proud :-)

Don't suppose there is a way to get the caller of a method, other than passing 
'this' in when the object is created ?
 
class RemoteObject{

        private var service;
        private var parent;

        function RemoteObject(parent:Application,endPointDomain:String){
                this.parent = parent;
                this.service = new Service(
                           "http://"+ endPointDomain +"/flashservices/gateway", 
                           null,
                           "com.halliwells.CFCs.flex.whitbread.remoteFacade",
                           null,
                           null );
        }
        
        public function login(name:String,onSuccess:String,onFault:String){
                var res:PendingCall=this.service.login(name);   
                res.responder=new RelayResponder(this.parent, onSuccess, 
onFault );
        }       
}


Tom Chiverton


****************************************************

This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at St 
James's Court Brown Street Manchester M2 2JF.  A list of members is available 
for inspection at the registered office. Any reference to a partner in relation 
to Halliwells LLP means a member of Halliwells LLP. Regulated by the Law 
Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

We are pleased to announce that Halliwells LLP has been voted AIM Lawyer of the 
Year at the 2005 Growth Company Awards


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:37:2502
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/37
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:37
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to