Jump to content
Sign in to follow this  
ashri

Disabling Flash Right Click Menu Through Javascript

Recommended Posts

hello there,i have a flash swf file with custom right click menu. file is embedded in html via javascript using swfobject.embedSWF() swfobject.embedSWF("gallery.swf", "GalleryDiv", "100%", "100%", "9.0.0", false, flashvars, params, attributes);i want to disable right click menu so that custom menu couldn't apear. can anyone help me. javascript code for this case is <script type="text/javascript"> var flashvars = {}; var params = {}; params.scale = "noscale"; params.salign = "tl"; params.wmode = "transparent"; params.allowfullscreen = "true"; params.menu="false"; var attributes = {}; swfobject.embedSWF("gallery.swf", "GalleryDiv", "100%", "100%", "9.0.0", false, flashvars, params, attributes); </script>thanks in advance

Share this post


Link to post
Share on other sites

You have to change that with Actionscript. Javascript has no control over plug-ins.

Share this post


Link to post
Share on other sites

The menu always appears and always shows certain entries, like About Flash. You can add custom entries if you want to. You need to edit the FLA file to change that.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...