Posted By

Meestercor on 08/21/08


Tagged

class php textmate amf amfphp


Versions (?)

amfphp


 / Published in: Other
 

  1. import flash.net.*;
  2.  
  3. var gw:NetConnection = new NetConnection();
  4. gw.connect("http://YOUR_SERVER/amfphp/gateway.php");
  5.  
  6. var res:Responder = new Responder(onResult, onFault);
  7.  
  8. function onResult(responds:Object):void
  9. {
  10. // parse the ArrayCollection
  11. var t:Array = responds.serverInfo.initialData;
  12. for(var i:uint=0; i<t.length; i++)
  13. {
  14. trace(t[i][2]);
  15. }
  16. }
  17.  
  18. function onFault(responds:Object):void
  19. {
  20. for(var i in responds)
  21. {
  22. trace(responds[i]);
  23. }
  24. }
  25.  
  26. gw.call("Service.method", res);

Report this snippet  

You need to login to post a comment.