How to notify the HTML container that the SWF has finished, using swfobject

To avoid that Flash player blocks your local swf to access to an external URL (internet, …) or to communicate with javascript or some other actions that fire usually a security sandbox violation error, you have to add it (the swf) to the list of trusted locations like this :

For Flash Player PPAPI (like Opera and Chrome) :

  • Right click on your swf opened in the browser, then Global Settings… :

enter image description here

Which will open this page.

enter image description here

  • Then, as it’s mentioned in the image, click on Edit locations… combo box, and Add location, which will give you this box :

enter image description here

You have just to type your swf location, or it’s parent directory, or simply the whole partition like what I did in the image. Try to avoid “Browse …” buttons, sometimes it doesn’t work (at least for me). Confirm and close the page and refresh that of your swf.

For Flash Player ActiveX (like IE) and NPAPI (like Firefox) :

  • Right click on your swf opened in the browser, then Global Settings…, you can also go to your system control panel and open Flash Player :

enter image description here

  • Then go to Advanced tab and click Trusted Location Settings... button :

enter image description here

  • Then you have to add the swf location using Add.. button > Add File... or Add folder... button > select your file/dir or partition and press OK, Confirm and close all dialogs.

enter image description here

Then you have just to refresh your page.

Leave a Comment