2 Replies Latest reply on Aug 9, 2006 10:05 AM by ntsiii

    HTTPService - using FlashVars for URL?


      New Flex user, so please forgive me if this sounds stupid. I'm fiddling around with a modified version of the dashboard sample application, and am using the FlashVars param tag to pass in a bunch of variables into the application. They all work fine, except the variable I'm using for the URL in HTTPService, which is the name of an XML file that another application I've written has generated. It returns this error:

      [RPC Fault faultString="A URL must be specified with useProxy set to false." faultCode="Client.URLRequired" faultDetail="null"]
      at mx.rpc.http::HTTPService/send()
      at mx.rpc.http.mxml::HTTPService/send()
      at dashboard/::initApp()
      at dashboard/___Application1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      But I'm absolutely positive the URL value is correct. I've tested and displayed the value that comes through, and when I manually paste that value into the URL, it works fine. Tried relative and absolute URLs, tried just passing the partial filename through (so the FlashVars variable just has alphanumeric characters) and hard-coding the rest of the URL. Same result.

      Does HTTPservice just not allow this value to be passed via FlashVars, or is there something I'm completely missing (maybe I need to convert the value somehow)? Or, is there another solution to this problem?

      Thanks, in advance.