Im trying to connect AMFPHP with an actionscript file, everything is working perfectly except the part of the connection between them.
This is how I try to connect the .as file with the service:
_netConnection = new NetConnection();
_netConnection.addEventListener(NetStatusEvent.NET_STATUS, onNetStatus);
_netConnection.connect("http://localhost/Core/Gateway.php");
The thing is, I cant make it work. I also tried to replace http for rtmpt (http tunneling) but it also doesnt work, I added the port after localhost, I tried several, no luck.
Depending on the port I add after localhost, the onNetStatus is not even called, or it says that it cant connect.
Any help?
Thanks!