0 Replies Latest reply on Aug 1, 2006 5:05 PM by jjkirby

    Using a Variable in HttpService url attribute

    jjkirby Level 1
      I have a dynamic url defined below

      public var forecastURL:String = " http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat=" + latitude + "&lon=" + longitude + "&format=12+hourly&startDate=" + todaysDate + "&numDays=" + numberDays + ""

      I would like to use the var without the {} bind. The compiler complains if the url is not surrounded in quotes. This should be simple? How can I use a var within the url attribute without the bind brackets?

      <mx:HTTPService
      id="forecastRequest"
      url = "{forecastURL}" result="resultHandler(event)" />