SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/Documents and Settings/Judah/My Documents/Flex Builder 3/project/bin/project.swf cannot access file:///C:/Documents and Settings/Judah/My Documents/Flex Builder 3/project/bin/frame1.html.
There are a few reasons for this error that counts as stepping outside of the Flash Player sandbox. One is when the path contains spaces. There are also times when your project will only work on the server or a server (localhost or remote). There are also issues with the browser that you run it in for example, (Firefox vs Internet Explorer). In my case it wouldn’t work because of the spaces in the filename.
Note: Do not use the default workspace in Flex Builder or Eclipse. The default path points to a location in your “My Documents” directory which contains spaces in the path. Set the default workspace to something without spaces, such as “C:\projects\” instead of the default which is, “C:/Documents and Settings/Judah/My Documents/Flex Builder 3/”.
You can do this by choosing File > Switch Workspace > Other and point it to a new directory.
After I switched to my normal workspace in “C:\projects\flex\” the error went away and the problem was fixed.
Copying these files up to your server or your local host may also fix your issue.
Previewing in http://localhost instead of file://
You can view these files on localhost instead of the file system by changing the following,
1. Start your local host (use a package like XAMPP)
2. In Flex Builder right click on the root project folder and select properties. This will open the project Properties window.
3. Select Flex Build Path and in the output folder choose a directory on your localhost. For example, “C:\XAMPP\xampp\htdocs” or “C:\XAMPP\xampp\htdocs\myproject”
4. In the Output folder URL enter the URL to the output folder. For example, “http://localhost/” or “http://localhost/myproject”
Now when you test your projects in Flex Builder they will be launched in the browser and served from the local host server, “http://localhost/” rather than the local file system “file://path/to/project/bin/myproject.html”.
Granting privileges to your project through the Global Security Settings
Go to the Global Security Settings panel at http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_manager04a.html#119065
and add your output folder of your application. This is the location entered in the Flex > Project > Properties > Flex Build Path > Output folder.
Please post in the comments your situation and if this has helped you or not.