5 Replies Latest reply on Jul 5, 2007 5:19 PM by NumberNineteen

    HTTP Service Result

    NumberNineteen Level 1
      I have an HTTP service that use to call server side scripts. Unlike URLRequest, this result statement does not work: event.target.data.myvar.

      What is the correct syntax to return the value I have sent back from the server?

      private function httpSenderResult(event:ResultEvent):void {
      //called by httpSender result event
      output.text = event.target.data.response //where "response" is the variable sent back from server
      }

      ERROR:
      ReferenceError: Error #1069: Property data not found on mx.rpc.http.mxml.HTTPService and there is no default value.
      at DeardorffCMS/::httpSenderResult()
      at DeardorffCMS/__httpSender_result()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.rpc.http.mxml::HTTPService/ http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::resultHandler()
      at mx.rpc::Responder/result()
      at mx.rpc::AsyncRequest/acknowledge()
      at ::DirectHTTPMessageResponder/completeHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()