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?
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?
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.
onEnterFrame = function(){
Mouse.hide();
}
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
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.
maybe you can have a movie clip that detects the mouse click event and when it detects this its runs the Mouse.hide(); code.
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:
onMouseDown = function() {
//only detects left click
Mouse.hide();
}
this.onEnterFrame = function() {
//looks for and detects right click
if (Key.isDown(2)) {
Mouse.hide();
}
};
can’t you disable right click in javascript on your html page ?
nevermind I checked and it doesn’t work.
Maybe onMouseUp?
Mlk, I only just realize that the text in your footer is random
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();
}
};
}
:: Copyright KIRUPA 2024 //--