SWF embedding problem with SWFObject 2.0
Reynaldo May 26th, 2008
For the last week or so I have been having loads of issues trying to embed a swf onto an HTML page with SWFObject 2.0. It works wonders when its just a regular swf being embedded, but when the embedded swf tried loading another swf, nothing.
Now check this out, wanted to install FlashTracer so I did and I read that in order for it to work properly, I HAD to install the debug version of the Flash Player. As soon as I ran the application on the new player, I immediately got an error message:
SecurityError: Error #2060: Security sandbox violation: ExternalInterface caller file:///C:/site.swf cannot access file:///C:/index.html.
After endless hair pulling and much reading and research I found the solution to the problem. All I had to do was add the following line to my embed code on html:
so.addParam(”allowScriptAccess”,”always”);
That did the job!



