Monday, 26 July 2010

Flash player: Security Sandbox Violation

Something I run into increasingly often at the moment is that incredibly annoying security sandbox violation error that tends to rear it's ugly head when I either work between Flash and Flex, or with any remote services. Googling brings up a lot of stuff about Crossdomain.xml, which, while useful to know, doesn't solve this issue (this problem is a local one, uploading the same files to a web server fixes it.)

There's actually a nice catch-all fix to it, which is something I always always forget about: the Flash global security settings panel, which can be found here:

http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04.html

All you need to do is either add your project root to the list of allowed locations (duh), or if you're like me and can't be bothered doing it every time, simply add a single forward slash ("/") to the allowed list, and never worry about it again. (This isn't advisable if you tend to download all sorts of weird Flash stuff that you don't trust, as you're essentially opening up your entire machine's Flash sandbox security, but if that's not an issue then go nuts.)

1 comment:

  1. Hi Dan,
    Great blog! I was wondering if you knew how to set these global security settings on a mobile device?

    It seems the Global Security Settings URL redirects to a not so helpful page, when used on a mobile device.

    ReplyDelete