Copy link to clipboard
Copied
I keep on getting this error while connecting to amfphp. Any idea what might be the problem?
Code:
private function init(e:Event = null):void
{
responder = new Responder(onResult, onFault);
connection = new NetConnection;
connection.connect(gateway);
sendData_btn.addEventListener(MouseEvent.CLICK, getData);
}
private function getData(event:MouseEvent):void
{
connection.call("UserVO.getUserData", responder);
}
private function onResult(result:Object):void
{
trace("Result");
}private function onFault(fault:Object):void
{
trace("Fault");
}
Copy link to clipboard
Copied
Hello,
Have you set the full path to your gateway.php file inside the amfphp folder
e.g. private var gateway:String = "http://localhost/amfphp/gateway.php";
Copy link to clipboard
Copied
The path is correct. Something strange is happening. If I run the swf standalone, it works, but inside the flash ide it gives me this error. Don't know what's going wrong...
Copy link to clipboard
Copied
I am testing the HelloWorld AMFPHP example from AMFPHP's website. There's a strange problem though. If i run the application from within the Flash IDE, I get this error:
But if I publish the application and run it in browser, it runs fine. What might be the problem?
Copy link to clipboard
Copied
Check this post:
http://rjdesignz.com/blog-entries/error-2044-unhandled-netstatusevent-levelerror-codenetconnection-call-badversion/
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more