Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
I'll debug your app. What type of var is iImgScale?
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
You're welcome, yep you changed the sandbox.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more