Hy I am currently going crazy ...
My AMF stopped working after one year of good performance. To make things more interesting, AMF is totally working in ZamfBrowser and when I test the movie from Flash... When I try calling a method from browser it returns
Error #2044: Unhandled NetStatusEvent:. level=error, code=NetConnection.Call.BadVersion
ActionScript Code:
import flash.net.NetConnection;
import flash.net.Responder;
import flash.system.Security;
import labels.helpers.Constants;
Security.allowDomain("http://localhost");
Security.loadPolicyFile("http://localhost/crossdomain.xml");
Security.allowInsecureDomain("http://localhost");
var nc:NetConnection = new NetConnection();
nc.connect(Constants.server);
var responder:Responder = new Responder(onLabelsGet,onErr);
nc.call("Amf_Services.loadTest", responder);
function onLabelsGet(e:Object):void
{
trace("loaded");
}
function onErr(e:Object):void
{
trace("err");
}
crossdomain.xml
Code:
<?xml version="1.0" encoding="UTF-8"?>
<cross-domain-policy xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.adobe.com/xml/schemas/PolicyFile.xsd">
<allow-access-from domain="*" />
<site-control permitted-cross-domain-policies="all"/>
</cross-domain-policy>
AMF class
Code:
// constructor and bla bla bla ...
public function loadTest()
{
return "true";
}
Despite my 2 days effort to solve this issue ! NADA !!!! NOTHING!!! NULL !!!
ANYBODY!!!! ???