1 Reply Latest reply on Oct 9, 2009 8:47 PM by Madhav Subedi

    set "url" in HTTPService using String variable

    Alex-SM

      Hi,

       

      How can I set "url" in HTTPService using String variable (see below). I've tried different formats of string & variable concatenations.

       

       

      privtate var myurl:String = "http://localhost/";


          <mx:HTTPService id="post_submit_service"
              url="{myurl+'test.php'}"
              method="POST"
              resultFormat="text"
            result="result_handler(event)"
            fault="fault_handler(event)">
              <mx:request xmlns="">
                ...
            </mx:request>
          </mx:HTTPService>

       

      Thanks,

      ASM