Flex SecurityError: Error #2148 While Accessing local XML

So you’ve published your Flex application that accesses local XML, but when you try to run it outside of your Flex Builder folder, you might get a Flash Player Debugger error #2148. I ran into this problem while on a tight deadline, and am reposting here to get the word out.

To fix this, you need:

  1. to right/control click your Flex Project folder in the Navigator
  2. Select properties
  3. Choose Flex Compiler in the popup window
  4. Add “-use-network=false” under Additional compiler arguments

flexproperties.jpg

Hopefully, this’ll save someone some time…

18 Responses to “Flex SecurityError: Error #2148 While Accessing local XML”

  1. rlramage Says:

    Wow, thank you so much! The Adobe documentation can be so cryptic :{

  2. hans.xie Says:

    good, it fixed my problem, thanks.

  3. Al Says:

    THAK YOU! That could have taken days to sort out.

  4. Gary Says:

    I love you – thanks!!!!!

  5. Fox Says:

    Great, this solution is so easy but so important. Thanks…

  6. Manco Says:

    Dude thank you sooo much

  7. Rish Says:

    Thank you very much. This was helpful :-)

  8. felix Says:

    This is a good solution if you know your app is running locally (e.g. for local testing), but it may cause issues once you load your files to the web.

  9. Peu Says:

    thanks… helpful !

  10. Marcio Says:

    Thanks man. you are the greatest

  11. Csmithcg Says:

    @ felix
    what is the alternate solution if your app is intened for the web?

  12. Rich Hauck Says:

    Are you accessing XML from the same domain? You might want to look into domain policy files and AllowScriptAccess.

  13. Selim Says:

    you’re the king ;)

  14. Joy Says:

    Thanks

  15. alswl Says:

    Tahnks , but in this way ,it can’t use socket….
    in my way , I created a txt file in “system32\Macromed\Flash\FlashPlayerTrust”, and the txt file include the trust paths

  16. jhoss Says:

    thanks so much I’m flex’s programmer but on mac… really, thank u so much…

  17. thomas Drupal Says:

    great time-saving tip. thanks a lot

  18. tianglim Says:

    Thanks a million! This is a lifesaver for me!

Leave a Reply


Bad Behavior has blocked 444 access attempts in the last 7 days.