Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

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

New Here ,
Jun 03, 2009 Jun 03, 2009

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

17.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 03, 2009 Jun 03, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jun 03, 2009 Jun 03, 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Jun 04, 2009 Jun 04, 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Mentor ,
Jun 04, 2009 Jun 04, 2009
LATEST

You're welcome, yep you changed the sandbox.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines