# Edited mouse cursor vs right mouse button click

**URL:** <https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321>\
**Category:** Uncategorized\
**Created:** [July 2, 2004, 5:08pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321 "2004-07-02T17:08:14Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipegm](https://avatars.discourse-cdn.com/v4/letter/f/e9bcb4/32.png) [@felipegm](https://forum.kirupa.com/u/felipegm)\
**Post date:** [July 2, 2004, 5:08pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/1 "2004-07-02T17:08:14Z")

</div>

I changed the mouse cursor using a tutoral from this forum, but when I press the right mouse button, the standard mouse cursor reapears…

How to prevent that?

---

<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:** [July 2, 2004, 7:21pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/2 "2004-07-02T19:21:10Z")

</div>

i don’t think that can be prevented.

---

<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:** [July 3, 2004, 10:27pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/3 "2004-07-03T22:27:23Z")

</div>

It’s processor intensive, but you can put this on your timeline and it will fix your problem. All it does is issue a Mouse.hide() every frame.

```auto

onEnterFrame = function(){
Mouse.hide();
}

```

---

<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:** [July 3, 2004, 10:55pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/4 "2004-07-03T22:55:59Z")

</div>

i think you can just put,

Mouse.hide();

in the first frame of your movie, it will hide the mouse for the whole movie and it aint processor intensive either

---

<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:** [July 3, 2004, 11:57pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/5 "2004-07-03T23:57:14Z")

</div>

True, alphaex, but what if you export your movie and run it in a browser from a server && right click the mouse to access the navigation menu that you cannot get rid of in Flash, your cursor (arrow) will reappear until the Flash player reads another Mouse.hide();

This is the problem felipegm is having.

---

<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:** [July 4, 2004, 12:58pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/6 "2004-07-04T12:58:01Z")

</div>

maybe you can have a movie clip that detects the mouse click event and when it detects this its runs the Mouse.hide(); code.

---

<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:** [July 4, 2004, 7:06pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/7 "2004-07-04T19:06:55Z")

</div>

Good idea! However, you would have to right-click twice to lose the cursor that seems to be superceded by the menu cursor. But still better than what I had before.  
If you put in both of these things, then the cursor will show up when you right click and the menu shows up, but then while the menu is up, if you right click OR left click, then the cursor will go away. This is what I did:

```auto

onMouseDown = function() {
//only detects left click
Mouse.hide();
}
this.onEnterFrame = function() {
//looks for and detects right click
   if (Key.isDown(2)) {
      Mouse.hide();
   }
};

```

---

<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:** [July 4, 2004, 7:19pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/8 "2004-07-04T19:19:00Z")

</div>

can’t you disable right click in javascript on your html page ?

---

<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:** [July 4, 2004, 11:04pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/9 "2004-07-04T23:04:04Z")

</div>

nevermind I checked and it doesn’t work.

---

<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 16, 2004, 12:14pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/10 "2004-08-16T12:14:26Z")

</div>

> [@Freddythunder](#):
>
> This is what I did:
> 
> ```auto
> 
> onMouseDown = function() {
> //only detects left click
> Mouse.hide();
> }
> this.onEnterFrame = function() {
> //looks for and detects right click
> if (Key.isDown(2)) {
> Mouse.hide();
> }
> };
> 
> ```

Maybe onMouseUp?

Mlk, I only just realize that the text in your footer is random 😛

---

<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 16, 2004, 12:18pm UTC](https://forum.kirupa.com/t/edited-mouse-cursor-vs-right-mouse-button-click/56321/11 "2004-08-16T12:18:19Z")

</div>

onClipEvent (load) {  
Mouse.hide();  
startDrag("", true);  
onMouseDown = function () {  
// only detects left click  
Mouse.hide();  
};  
this.onEnterFrame = function() {  
//looks for and detects right click  
if (Key.isDown(2)) {  
Mouse.hide();  
}  
};  
}
