By default, after you insert your Flash SWF file to your
HTML page and publish it, when you right click on the Flash
SWF file, a menu will popup with menu items including Zoom
In, Zoom Out, Play, Loop,
Print etc. This tutorial will guide you how to disable
right click menu on Flash SWF file without modifying the SWF
file.
But please note, though we can disable most items on the
right click menu, the items "Settings" and "About
Adobe Flash Player" will still display.
After you have included the Flash SWF file to your HTML page,
you can open the HTML page with your HTML editor and edit
the HTML code.
Look for the code that embeds the Flash Movie. It should
look similar to this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="540" height="140">
<param name="movie" value="flashmovie.swf"
/>
<param name="quality" value="high"
/>
<param name="allowScriptAccess" value="always"
/>
<param name="wmode" value="transparent"
/>
<embed src="flashmovie.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="540"
height="140"
pluginspage="http://www.macromedia.com/go/getflashplayer"
allowScriptAccess="always" />
</object>
To make the Flash auto zoom and auto fit into its container,
you should change the code as following. The changes are shown
in red.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"
width="540" height="140">
<param name="movie" value="flashmovie.swf"
/>
<param name="quality" value="high"
/>
<param name="allowScriptAccess" value="always"
/>
<param name="wmode" value="transparent"
/ >
<param name="menu"
value="false" />
<embed src="flashmovie.swf"
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
menu="false"
width="540"
height="140"
pluginspage="http://www.macromedia.com/go/getflashplayer"
allowScriptAccess="always" />
</object>
Below is an example, you can right click on the Flash SWF
file and have a test.
Before:
After: