Posted By

jonniespratley on 10/27/08


Tagged

textmate as3 amfphp


Versions (?)

Connection to AMFPHP


 / Published in: Other
 

  1. /** NetConnection variable for creating our amfphp connection */
  2. private static var _service:NetConnection;
  3.  
  4. /** Location of our gateway for amfphp */
  5. private var gateway:String = "http://localhost/snippr/amfphp/gateway.php";
  6.  
  7. /**
  8. * Here we are creating a new connection to our amfphp service, when this is instantiated,
  9. * it connects to our service.
  10. *
  11. */
  12. public function connect():void
  13. {
  14. _service = new NetConnection();
  15. _service.connect( gateway );
  16. }

Report this snippet  

You need to login to post a comment.