Flash variations??

Miscellaneous Forums/General Discussion/Flash variations??

hi everyone
ive been learning game development with flash and have a quick question.
i've noticed that some flash apps online, when right clicked have the options: settings, and about adobe flash player, while other apps have the options: zoom in, zoom out, show all, etc. is there a way to chose witch one i want??

In AS3 this is handled by the ContextMenu class.

http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/ui/ContextMenu.html

You can also specify no menu (using menu=false) in the webpage itself if it's easier for you...

<OBJECT classid="blah" codebase="http://blah blah" id="movie" width="400" height="200">
<PARAM name="movie" value="movie.swf">
<PARAM name="menu" value="false">
<PARAM name="quality" value="high">
<PARAM name="allowscriptaccess" value="samedomain">
</OBJECT>
Menu false means you will only have 'settings' and 'about' active when right-clicked.

Menu true will give all options when right-clicked.

AS1-2: simple write Stage.showMenu = false in first frame