Flash Script – Disable the User’s Right Click Menu


The menu of a flash movie can be disabled using the menu attribute, and setting it to false like so:

<EMBED src=transparent.swf type="text/html;  
charset=iso-8859-1" quality="high" menu=false  
bgcolor=#000000 WIDTH=120 HEIGHT=30>

To activate the menu again, set the attribute menu=true. Simple!

Free JavaScript: Novice to Ninja Sample

Get a free 32-page chapter of JavaScript: Novice to Ninja and receive updates on exclusive offers from SitePoint.

  • http://twitter.com/ibnYusrat Muhammad bin Yusrat

    This does not remove the menu. It just disables some of the features of the right click menu.