A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Help! Sandbox error loading a local XML file

  1. #1
    Senior Member
    Join Date
    Oct 2009
    Posts
    117

    Help! Sandbox error loading a local XML file

    Hello,

    I'm trying to load a local xml file:

    xmlLoader.load(new URLRequest("../xml/xmlData.xml"));

    But I'm getting this security sandbox violation:

    #2148: Only local-with-filesystem and trusted local SWF files may access local resources.

    I'm sure there's some very basic that I'm overlooking. (I don't get this error when I embed the XML file directly with the EMBED metadata tag.)

    Can someone point me in the right direction?

    Thanks!

  2. #2
    Senior Member
    Join Date
    Oct 2009
    Posts
    117
    Solved, I needed a .cfg file to specify the SWF folder as trusted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center