Domanda

Im trying to make some tests locally and I'm finding some troubles when I try to connect my AMFPHP server with Flash.

This is how I connect to my server:

_netConnection.connect("http://localhost/Amfphp");

and this is how I make a call to the predefined example service that comes with AMFPHP:

_netConnection.call("ExampleService.returnOneParam", res, 5);

(res is a Responder object)

When I try it, I get a Netconnection.Call.Badversion message.

I've googled a lot, and tried different suggestions, nothing seems to work.

Any ideas?

È stato utile?

Soluzione

Check out this list: http://www.silexlabs.org/amfphp/documentation/troubleshooting-and-debugging-your-project/

The most common one I've had is if you have extra characters (even spaces or newlines) after the closing ?> tag of your php.

Also if there's an error in your code, and your php is printing that, that'll kill it as well.

Try calling it outside of flash first to make sure everything's working.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top