2 Replies Latest reply on Oct 24, 2006 7:27 PM by Camus Miu

    Security error accessing url

    Camus Miu
      Hi all, I have a noob question. tried search on the forum but no luck, so would like to see if any of you have idea on it.

      my flex application retrieve external data via httprequest.
      it works fine locally at the original compile folder, but when i copy the files to other folder, it does't work and give me this error:


      [RPC Fault faultString="Security error accessing url" faultCode="Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::faultHandler()
      at mx.rpc::Responder/fault()
      at mx.rpc::AsyncRequest/fault()
      at ::DirectHTTPMessageResponder/securityErrorHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()

      isn't it no restriction to load external data with local flash player???
        • 1. Re: Security error accessing url
          ntsiii Level 3
          I wish I had a single definitive source to point you to but as far as I know, there is not one yet.

          You need to look into a crossdomain.xml file. Google it , plus here is one good source:
          http://www.crossdomainxml.org/

          Tracy
          • 2. Re: Security error accessing url
            Camus Miu Level 1
            Thanks for the information, working on it.

            I just feel really weird that it seems within the Flex Project folder, there is exceptional case that no crossdomain.xml is needed even I am retrieving external data.

            While I moved the files out of the Flex Project directory, the restrictions implies and croassdomain.xml is needed.

            Is some setting is implemented whenever I define a Flex Project?

            In short, for those who don't have a Flex installed, they can't run the application locally without crossdomain.xml?