Problems in the Game

NetConnection.Call.BadVersion

When using AMFPHP, it is common to find this error: NetConnection.Call.BadVersion. There are many possible reasons for NetConnection.Call.BadVersion. (Suppose you are using localhost): (1) Server is not open. (2) The address of gateway.php in /browser/service-config.xml is not correct. (3) In each PHP file, it should start with <?php, instead of simple <?, if the server doesn't allow php_short_open; otherwise displaying errors. (4) include_path is  incorrect. (5) Did some inappropriate session manipulation. In order to recover, you can use the following file to clear the session: refresh_session.php:

<?php
     session_start();
     session_unset();
     session_destroy();
?>

These two links will be helpful to solve the NetConnection.Call.Badversion problem as well: http://www.flash-db.com/Board/index.php?topic=3882.15 http://www.5etdemi.com/blog/archives/2006/01/i-killed-netconnectioncallbadversion-for-real-this-time/

Problems when deploying AMFPHP

Please refer to this: http://www.amfphp.org/docs/deploying.html Attention that in crossdomain.xml:

<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
(this line should be deleted, otherwise the xml file will be reported as not well-formed.)
 <cross-domain-policy>
 <allow-access-from domain="www.company.com" />
 <allow-access-from domain="company.com" />
 </cross-domain-policy>