Bilbosax edited a comment on issue #1064:
URL: https://github.com/apache/royale-asjs/issues/1064#issuecomment-768485383


   @cristallium So I had to add the include_path of the ZendFramework library 
to my php.ini file.  I believe the php endpoint is index.php in my case, that 
is where all the Server code and the VO mapping go, and the first line is 
require_once('Zend/Amf/Server.php') which pulls in the Server.php 
functionality.  This all works like butter in my Flex apps, so I feel it should 
be a solid setup.  The last line of index.php is "echo($server -> handle());" 
which I believe spits out the 'Zend Amf Endpoint'.
   
   Here is the MXML that I use to set up the RemoteObject:
   
   `<mx:RemoteObject id="brokerageRO" destination="zend" 
source="BrokerageService" endpoint="https://www.dealestator.com/services/"; 
showBusyCursor="false"/>`
   
   And here is my actionscript code to call the service and the result/fault 
handlers which happen on a button click:
   
   ```
   protected function testROClickHandler(event:MouseEvent):void {
       //Set Up Responder and Token and call service
        var r:Responder = new Responder(getStatesResultHandler, 
databaseFaultHandler);
        var t:AsyncToken = brokerageRO.getStates();
        t.addResponder(r);
   }
   
   protected function getStatesResultHandler(event:Event):void {
        trace("I freakin got it!!!");
   }
   
   protected function databaseFaultHandler(event:FaultEvent):void {
        trace(event.message);
   }
   ```
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to