Connection to AMFPHP


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.