Skip to main content
Participant
June 3, 2009
Question

Only local-with-filesystem and trusted local SWF files may access local resources

  • June 3, 2009
  • 1 reply
  • 17114 views

Hi,

i am using an XML file in my Flex project.
When i use it on Flex Builder, it works fine  then when i do an export release build, and try to load the D:\temp2\bin-release\test.html page,
i get an error :                   
[RPC Fault faultString="Error #2148: SWF file file:///D:/temp2/bin-release/POC.swf cannot access local resource data/villes.xml. Only local-with-filesystem and trusted local SWF files may access local resources." faultCode="InvokeFailed" faultDetail="null"]

How can i turn that XML file ( D:\temp2\bin-release\data\villes.xml) trustable so Flash Player does not complain ?

Thanks

    This topic has been closed for replies.

    1 reply

    Michael Borbor
    Inspiring
    June 4, 2009

    I'll debug your app. What type of var is iImgScale?

    CelinioAuthor
    Participant
    June 4, 2009

    Michael Borbor,

    thanks for helping but i have found the workaround :

    I added the following arguments to the compiler (via Properties - Flex Compiler)  :

    -use-network=false

    Anyways, maybe you replied to the wrong thread, since i do not have any iImgScale var in my previous post.

    Adobe Employee
    June 4, 2009

    That is for SWFs that won't access the network. I think you may be having a trust file problem. Read up on FlashPlayer trust files and put d:\temp2 in the trust file. FB usually does it for you, but might have fooled it somehow.

    Alex Harui

    Flex SDK Developer

    Adobe Systems Inc.

    Blog: http://blogs.adobe.com/aharui