Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion

Participant ,
Feb 13, 2010 Feb 13, 2010

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");
        }

TOPICS
ActionScript
9.2K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 13, 2010 Feb 13, 2010

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";

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 14, 2010 Feb 14, 2010

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...

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Feb 17, 2010 Feb 17, 2010

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:

Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
at Main()

But if I publish the application and run it in browser, it runs fine. What might be the problem?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
May 28, 2010 May 28, 2010
LATEST

Check this post:

http://rjdesignz.com/blog-entries/error-2044-unhandled-netstatusevent-levelerror-codenetconnection-call-badversion/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines