# How do you disable the option when u right click in a flash movie

**URL:** <https://forum.kirupa.com/t/how-do-you-disable-the-option-when-u-right-click-in-a-flash-movie/4561>\
**Category:** flash\
**Created:** [August 13, 2002, 12:36pm UTC](https://forum.kirupa.com/t/how-do-you-disable-the-option-when-u-right-click-in-a-flash-movie/4561 "2002-08-13T12:36:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BaBa](https://avatars.discourse-cdn.com/v4/letter/b/a5b964/32.png) [@BaBa](https://forum.kirupa.com/u/BaBa)\
**Post date:** [August 13, 2002, 12:36pm UTC](https://forum.kirupa.com/t/how-do-you-disable-the-option-when-u-right-click-in-a-flash-movie/4561/1 "2002-08-13T12:36:25Z")

</div>

well hows it done

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 13, 2002, 4:08pm UTC](https://forum.kirupa.com/t/how-do-you-disable-the-option-when-u-right-click-in-a-flash-movie/4561/2 "2002-08-13T16:08:24Z")

</div>

you should really read this article before disabling right-click though

> **[SitePoint — Learn HTML, CSS, JavaScript, PHP, Ruby & Responsive Design](https://www.sitepoint.com/)**
>
> Learn Web Design & Development with SitePoint tutorials, courses and books - HTML5, CSS3, JavaScript, PHP, mobile app development, Responsive Web Design

you can do it for the page in javascript

> 

* * *

## The Code:

```auto
script language="javascript"
function noRightClick() {
if (event.button==2) {
alert('You can NOT Right-Click on this page -- but you CAN Left-Click.')
}
}
document.onmousedown=noRightClick
/script

```

* * *

## Instructions:

Paste the JavaScript segment above into the header of your page.  
(That is, between the and tags.

Change the message in the alert() call from our message  
(‘You can NOT Right-Click on this page – but you CAN Left-Click.’)  
to whatever you wish to appear in the alert box.

END

you can disable it in flash by

> 

1.The menu of a flash movie can be disabled by using the menu attribute and set it to false. insert this tag into your html

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

```

2.To activate the menu set attribute menu=true

p.s. i know the pointed brackets arent around the tags but when i had them in there the code didn’t show up when i viewed the message. weird :-\
