Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 03-12-2012, 09:47 AM   #1
gazuraz
Senior Member
 
Join Date: Dec 2008
Location: Serbia/ Smederevo
Posts: 297
Default AMF bug

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!!!! ???
gazuraz is offline   Reply With Quote
Old 05-11-2012, 06:26 PM   #2
wvxvw
Holosuit User
 
wvxvw's Avatar
 
Join Date: Oct 2006
Location: Tel Aviv
Posts: 4,301
Send a message via ICQ to wvxvw
Default

Did you update PHP / Zend framework? Anyway, if you try to look at what is sent and received in, for example, tcpdump (or Wireshark or similar), do you see anything unusual? Charles proxy is very useful in such cases too.

From the sound of it - there's some non-AMF data being sent in the response (like, for example, an error message in plain text).
__________________
The .NET open source editor for Flash and web developers
*This would be my contribution to the project*
couchsurfing if you need it
wvxvw is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:29 PM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.