3 Replies Latest reply on Jun 8, 2009 11:19 AM by BennyBeta

    Specify 'GET' parameters in HTTPService in ActionScript?

    Clifford Meece

      Hi,

      I was wondering if there is a way to specify variables and values in Actionscript to send in an HTTPService.  Say I wanted to send a request like:

       

      http://mydomain.com/?user=test

       

      In AS3, I have this:

       

      private function init():void {

        service = new HTTPService();

        service.destination = "http://mydomain.com";

        service.method = "GET";

        service.addEventListener("result", httpResult);

        service.addEventListener("fault", httpFault);

      }

       

      Is there a way to use a function to specify GET variables (user=test)?  Because otherwise it become more cumbersome to keep changing the destination screen and worry about escaping variables, etc, etc.