1 Reply Latest reply on Aug 8, 2006 9:33 PM by Ticean_Bennett

    Runtime error - Newbie

    Jfill
      I am going through a training cd and I just got the following error. Can anyone shed some light on how I can fix this??

      [RPC Fault faultString="Error #2148: SWF file file:///C:/Documents and Settings/Jason/Desktop/Project Files - Flex 2/06-Retrieving XML Data/bin/HsRPC_wt1.swf cannot access local resource assets/sandwichData.xml. Only local-with-filesystem and trusted local SWF files may access local resources." faultCode="InvokeFailed" faultDetail="null"]
      at mx.rpc::AbstractInvoker/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http.mxml::HTTPService/ http://www.adobe.com/2006/flex/mx/internal::invoke()
      at mx.rpc.http::HTTPService/send()
      at mx.rpc.http.mxml::HTTPService/send()
      at HsRPC_wt1/___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()

        • 1. Re: Runtime error - Newbie
          Ticean_Bennett
          Are you sure that the xml file is in the right location? I don't know your code concerning the XML file but I think it should be located here:

          C:/Documents and Settings/Jason/Desktop/Project Files - Flex 2/06-Retrieving XML Data/assets/sandwichData.xml