Note that there are some explanatory texts on larger screens.

plurals
  1. POhow to connect from Flash Media Server 3.5 to Zend_Amf
    primarykey
    data
    text
    <p>i want to be able to connect from flash media server 3.5 to Zend_Amf (latest ZendFramework version). i tried doing the following:</p> <pre><code>function amfresponder ( ) { this.onResult = function (result) { trace("Success: " + String(result)); }; this.onStatus = function (fault) { trace("Error: "+ fault.description); }; }; application.onConnect = function(client) { myResponder = new amfresponder(); connection = new NetConnection(); connection.connect("http://localhost/AmfServer.php"); trace("checking connection"); connection.call("isConnected",myResponder); return true; } </code></pre> <p>i see in the apache access log that a request for AmfServer.php was made but nothing is returned, not even an error message. on the fms admin log i only see 'checking connection'.</p> <h3>update</h3> <p>A different approach:</p> <pre><code>application.isFine_Status = function(info) { for(var item in info) { trace(item + " " + info[item]); } } application.isFine_Result = function(res) { trace(res); } application.onAppStart = function() { trace("application started"); NetServices.setDefaultGatewayUrl("http://localhost/AmfServer.php"); this.gatewayconn = NetServices.createGatewayConnection(); this.pservice = this.gatewayconn.getService('PrivateFunc',this); this.pservice.isFine(); } </code></pre> <p>The Zend_Amf class is:</p> <pre><code>set_include_path(get_include_path().PATH_SEPARATOR.realpath(__DIR__.'/../').PATH_SEPARATOR.realpath(__DIR__.'/../../include/PEAR-R2')); require_once('Zend/Amf/Server.php'); require_once('PrivateFunc.php'); $server = new Zend_Amf_Server(); $server-&gt;setClass('PrivateFunc','PrivateFunc'); $response = $server-&gt;handle(); echo $response; </code></pre> <p>on both cases i have no results what so ever. any ideas?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload