Does the server have a crossdomain.xml file on it?
Gk. Gregor Kiddie Senior Developer INPS Tel: 01382 564343 Registered address: The Bread Factory, 1a Broughton Street, London SW8 3QJ Registered Number: 1788577 Registered in the UK Visit our Internet Web site at www.inps.co.uk <blocked::http://www.inps.co.uk/> The information in this internet email is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is not authorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of INPS or any of its affiliates. If you are not the intended recipient please contact [email protected] ________________________________ From: [email protected] [mailto:[email protected]] On Behalf Of markflex2007 Sent: 23 March 2009 04:21 To: [email protected] Subject: [flexcoders] How to separate Flex code and server code in different servevr? Hi, I test Flex code and php server code in same server and it works fine.I use the following line code. private var amf:RemoteObject = new RemoteObject(); amf.source = "something.something"; amf.destination ="something"; amf.endpoint = "http://localhost/amfphp/amfphp/gateway.php <http://localhost/amfphp/amfphp/gateway.php> "; I use same Flex code and different endpoint after I move the same php code to other server. private var amf:RemoteObject = new RemoteObject(); amf.source = "something.something"; amf.destination ="something"; amf.endpoint = "http://192.168.0.188/amfphp/amfphp/gateway.php <http://192.168.0.188/amfphp/amfphp/gateway.php> "; I get the error: RPC Fault faultString="Send failed" faultCode="Client.Error.MessageSend" faultDetail="Channel.Security.Error error Error #2048: Security sandbox violation: http://localhost/AMFTest2/bin-debug/AMFconnect.swf <http://localhost/AMFTest2/bin-debug/AMFconnect.swf> cannot load data from http://127.0.0.1/amfphp/amfphp/gateway.php. <http://127.0.0.1/amfphp/amfphp/gateway.php.> url: 'http://192.168.0.188/amfphp/amfphp/gateway.php <http://192.168.0.188/amfphp/amfphp/gateway.php> '"] which config file I have to change to make it work. Thanks for your help. Mark

