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:
- to right/control click your Flex Project folder in the Navigator
- Select properties
- Choose Flex Compiler in the popup window
- Add “-use-network=false” under Additional compiler arguments

Hopefully, this’ll save someone some time…

June 14th, 2007 at 5:50 am
Wow, thank you so much! The Adobe documentation can be so cryptic :{
July 30th, 2007 at 3:09 am
good, it fixed my problem, thanks.
August 16th, 2007 at 4:37 am
THAK YOU! That could have taken days to sort out.
August 28th, 2007 at 4:36 pm
I love you – thanks!!!!!
August 29th, 2007 at 12:02 am
Great, this solution is so easy but so important. Thanks…
September 20th, 2007 at 11:36 am
Dude thank you sooo much
October 12th, 2007 at 11:14 am
Thank you very much. This was helpful
October 29th, 2007 at 3:44 pm
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.
March 19th, 2008 at 9:16 am
thanks… helpful !
April 15th, 2008 at 7:52 pm
Thanks man. you are the greatest
May 20th, 2008 at 12:46 pm
@ felix
what is the alternate solution if your app is intened for the web?
May 21st, 2008 at 3:15 pm
Are you accessing XML from the same domain? You might want to look into domain policy files and AllowScriptAccess.
May 26th, 2008 at 3:58 pm
you’re the king
May 10th, 2010 at 12:13 pm
Thanks
May 23rd, 2010 at 4:16 am
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
June 2nd, 2010 at 5:18 pm
thanks so much I’m flex’s programmer but on mac… really, thank u so much…
July 19th, 2010 at 11:11 am
great time-saving tip. thanks a lot
August 23rd, 2010 at 12:46 am
Thanks a million! This is a lifesaver for me!