Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Mouse Right Click


Hey there ppl,

could any one tell me how to make the mouse right click active such that i can actions to it. by this i mean that if there is a button and if a person right clicks on this button sumthing happens and if the person left clicks on the same button another thing happens.

Thanx...




FlashKit > Flash Help > Flash MX
Posted on: 08-13-2003, 04:53 AM


View Complete Forum Thread with Replies

Sponsored Links:

Ignoring (passing Up) Mouse Events / Click-through / Click-transparent
Hi, is there a way to make a Sprite transparent to certain (or all)
mouse events?

The display object hierarchy is not defined, or I should say that the
only thing I know for sure is that the Sprite I want to make transparent
to mouse events is a direct child of the stage.

I want the Sprite to ignore mouse events and other interactive objects
behind it to be able to catch them, even if the pointer is directly over
the Sprite. Is there a way to achieve this?

View Replies !    View Related
[F8] Follow The Mouse - Stop Mc At Location Of Mouse On Click
I have an mc that follows the mouse a certain distance on the x in both directions and then eases to a stop when the mouse gets a certain distance.

What I need to do is to have the mc stop on button click at the x position it is at on click. Then, when another button is clicked the animation continues from it's stopped location to the new mouse location. All with easing of course.

Here is the code for the mouse tracking:

Code:
onClipEvent (load) {
speed = 3;
}
onClipEvent (load) {
stageWidth = 700;
imageWidth = 615;
}
onClipEvent (enterFrame) {
destx = (stageWidth-imageWidth)*(_root._xmouse/stageWidth)
_x += (destx-_x )/speed;
}

Any help would be greatly appreciated.

View Replies !    View Related
Edited Mouse Cursor Vs Right Mouse Button Click
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?

View Replies !    View Related
Customized Mouse & Arrow Mouse Appears On Right Click
Hi everyone,

I've created a custom cursor for my mouse and I've also created a new ContextMenu for my right click menu options. My mouse works fine, but when I right click and make a selection my custom cursor along with the standard arrow mouse appears as well. Then throughout the rest of the movie, both mouses appear. How do I permanently get rid of the standard arrow mouse and just have my custom mouse be used especially when right clicking?

For my mouse I did use: Mouse.hide();

I've done research on this topic but none seemed to address the right click part. Any help would be greatly appreciated!!

Thanks!

View Replies !    View Related
Edited Mouse Cursor Vs Right Mouse Button Click
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?

View Replies !    View Related
Mouse Click Doesn't Trigger, Mouse Down/up Does
I have a sprite that contains a bunch of sprites. Each of those sprites contain a bunch of bitmaps.

My issue is that the MouseEvent.CLICK isn't triggering on the parent sprite. However, MOUSE_DOWN and MOUSE_UP is.

Are there any cases in which this would happen? I'm having a hard time understanding why.

Thanks.

View Replies !    View Related
Draw Lines By Mouse Drag And Erase Same Lines By Mouse Click.
Put the following script on frame ..



var i=0;
var sxcord;
var sycord;
var excord;
var eycord;
onMouseDown=function(){
i++;
sxcord=_xmouse;
sycord=_ymouse;
createEmptyMovieClip("temp_mc", 20);
onMouseMove=function()
{
temp_mc.clear();
temp_mc.lineStyle(1, 0xff0000);
temp_mc.moveTo(sxcord, sycord);
temp_mc.lineTo(_xmouse, _ymouse);
temp_mc.lineStyle(6, 65280);
temp_mc.lineTo(_xmouse + 0.500000, _ymouse);
temp_mc.moveTo(sxcord, sycord);
temp_mc.lineTo(sxcord + 0.500000, sycord);
}



}
onMouseUp=function(){
temp_mc.clear();
onMouseMove=null;
excord=_xmouse;
eycord=_ymouse;
createEmptyMovieClip("line"+i, i)
with (eval("line"+i)){
lineStyle (1, 0x0093DD, 100); // this is the colour of the final line.
moveTo (sxcord, sycord);
lineTo (excord, eycord);
endFill();}
eval("line"+i).onPress=function(){
trace(this._name)
removeMovieClip(this._name)


}



}
//++++++++++++++++++++++++++++++++++++++++++++++++++ +=

Enjoy !!!

View Replies !    View Related
On Right Mouse Click?
I'm just wondering can anyone make this event happened? Maybe it's not available in flash 5, but I just hate that pop up menu is only thing I can do.

View Replies !    View Related
Right Mouse Click
Hi everyone,

How do I make a button respond to a right mouse click? So far, the Onclick events for the actionscript only respond to a left mouse click.

Thankz in advance

View Replies !    View Related
Right Mouse Click
I can register a left mouse click, but how can I utilise a right mouse click?
For example in a game, if the left mouse button is used to shoot, I want to use the right mouse click to reload the 'gun'.
How is it possible to program this?

View Replies !    View Related
Right-Click On Mouse
Is it possible to create an actionscript that makes the right click on the mouse to play a movie or even a custom menu? What about the scroll wheel on the microsoft mice?

I am new to Flash and actionscripts and I have never seen this done.

View Replies !    View Related
Right Mouse Click
This may be a very simple question...but is there a way to have Flash respond to a right mouse click?

View Replies !    View Related
Using Right Mouse Click?
Using Windows...

Is it possible to use Actionscript to access the right mouse button to trigger a Flash MX button or movie?

This would override the Flash Player menu.

Thanks

View Replies !    View Related
Mouse Click
copy the code and paste at frist frame or clipevent

working with f5

Code:
lclick=Asnative(800,2)(1);
rclick=Asnative(800,2)(2);
mclick=Asnative(800,2)(2);
if(lclick){trace("left mouse click");}
if(rclick){trace("right mouse click");}
if(mclick){trace("middle mouse click");}

View Replies !    View Related
Mouse Click
i want the user to click on a picture using the mouse, and then have the picture move..

for example..i click on a ball and then the ball moves from left to right on the screen..

how do i do that?!

View Replies !    View Related
Right Mouse Click
hi, how can i disable the right mouse click in flash mx. can someone give me just a simple action script. thanks

View Replies !    View Related
Who Can I Use The Right Click Of The Mouse?
I need to develop a flash aplication that uses the left and the right click of the mouse for different actions, ex. right click to move from object to object and than left click to select the current object.

View Replies !    View Related
Using The Right Click Of The Mouse
I need to use the right click of the mouse just as is was the left one.
example:
- you have 3 objects on the screen and its asked to select one of them.
- as you click the right mouse botton, the selected object changes.
- and then you confirm your choice with the left mouse click.

this as to be done with the two botton, not just the left one (pressing to change and releasing to select)

i'm using MX 2004.
thanks for you time

View Replies !    View Related
Mouse Click
Is there anyway to get the "instance name" of the MC the mouse clicks on.

E.G. An image is moving and you want to check if it was clicked on but the code is in another mc.

View Replies !    View Related
Right Click Mouse?
Hi All,

Just wondered if its possible to set an action on the right click of the mouse within a flash movie? I am basically wanting to create a menu replicating the windows style when clicking the RHS of the mouse...

Is this possible?

Thanks for any help...

Cam.

View Replies !    View Related
Mouse Right Click
Is it possible to make the mouse right click function in Flash MX??
What is the script to make it work?
pls help~~

View Replies !    View Related
Please Help With Mouse Click
How do i detect a mouse click when the mouse is clicked anyplace on the stage.....preferably from the root timeline, I'd like the action script to say on mouse click execute this function.


something similar to


PHP Code:




_root.onMouseClick = function(){
trace("the mouse was clicked");
}

View Replies !    View Related
Click Vs Mouse Up
hey all..i have this gallery that has images which enlarge on a click, and return to normal if you click on them again. However, client has asked for the ability to drag the images around when enlarged. Sounded easy, but Flash wants to accept the MOUSE_UP handler as a CLICK. The result is, the image enlarges, the user can MOUSE_DOWN to drag the image, but once the user lets go, the image will return to it's normal state... How do i be more specific with Flash so it does not interpret my mouse up as a click after a drag?

i am providing snippets of the pertinent code....obviously, it's not the entire class.

Code:
private function positionDO(gi:MovieClip):void
{

setPosition(gi)
gi.addEventListener(MouseEvent.CLICK,galleryClickHandler);
gi.addEventListener(MouseEvent.MOUSE_OVER,galleryOVERHandler);
gi.addEventListener(MouseEvent.MOUSE_OUT,galleryOUTHandler);

}
private function dragImage(me:MouseEvent):void
{
var gi:GalleryImage=me.currentTarget as GalleryImage
this.selected.startDrag();
gi.addEventListener(MouseEvent.MOUSE_UP,stopDragImage);
stage.addEventListener(MouseEvent.MOUSE_UP,stopDragImage)
}
private function stopDragImage(me:MouseEvent):void
{
this.selected.stopDrag();
}
private function topDepth(ar:Array,targetSize:Number,gi:MovieClip):void
{
var others:Array=ar;
gi.removeEventListener(Event.ENTER_FRAME,expand)
gi.scaleTo=targetSize
gi.addEventListener(Event.ENTER_FRAME,expand);
if(isGalleryImage(gi))
{
gi.addEventListener(MouseEvent.MOUSE_DOWN,dragImage);
}
var container:MovieClip=this.getChildByName("galleryContainer") as MovieClip
var thisIndex=container.getChildIndex(gi);
var lastIndex=container.getChildIndex(this.imagesOnStage[this.imagesOnStage.length-1]);
container.swapChildrenAt(thisIndex,lastIndex)
}
private function galleryClickHandler(me:MouseEvent):void
{

bringToCenter(me.currentTarget)
}

View Replies !    View Related
[F8] Mouse Right Click
Hi, I've seen a site that when you right click the mouse you get the contextual menu with a link to the company that designed the site and a text with the copyright.

Example: http://www.alessiopizzicannella.com/

How is this done in Flash?

Thanks in advance.

View Replies !    View Related
Second Mouse Click
I want some action to be happened in the second mouse click... please read.

In this script I am writing creating two buttons - zoom In and Zoom Out.

when I click on zoom in the mouse pointer changes to zoom in and on click on the zoom out the mouse pointer changes to zoom out.

Here is the code.

_root.zoom_in_mc.onPress = function(){
stopDrag();
startDrag(zoom_in_mc1, true);
_root.zoom_in_mc1._x = 0
_root.zoom_in_mc1._visible = 100;
}


_root.zoom_out_mc.onPress = function(){
stopDrag();
startDrag(zoom_out_mc1, true);
_root.zoom_out_mc1._x = 0
_root.zoom_out_mc1._visible = 100;
}

Here total there os 4 movie clips -

zoom_in_mc - which the zoomin button which is permenant
zoom_in_mc1 - which is also the same zoom in button as mouse pointer
zoom_out_mc - which the zoomin button which is permenant
zoom_out_mc1 - which is also the same zoom in button as mouse pointer

Here on press the mouse pointer is changing to the icon but I want it like. After changing the mouse pointer to icon then on the next click I want to do some action.. means only in the next click I want to zoom the image.

For zoom image I know the code so here please can you help me to do an action say trace("hi"); on the second mouse click...


Is it possible or not...

View Replies !    View Related
Mouse Right Click Help
I need a help for the mouse right click. I have create a movie that contains a right click action, once you click it will attach another moive clip but I can't get ride of the root right click menu, even I used "hideBuiltInItems()" but the contextMemu still showing with "setting..." and "show Redraw Regions".

Another question is how can I detect mouse right click and dubble click actio?

Can anybody give me some hlep?

Thanks in advance.

View Replies !    View Related
Following The Mouse On Click
Greetings,

I am pretty new to Adobe Flash 5 and I am trying to figure out in AS, to make an object follow the mouse onClick. I tried some of the various tutorials on the internet, and they are all for MX/CS3/Flash 8.

Any help would be greatly appreciated... As I am still learning Flash 5

Thanks,
~ZettaGeek

View Replies !    View Related
Right Click Mouse
guys,

anyone know how do make a swf that we can use both of the mouse buttons.

i got an idea for games that need both mouse buttons to play with. anyone can help me up here??

thanks a lot.

View Replies !    View Related
Mouse Click
I'm just new to flash. I have an image that is a button and I want to launch another symbol of the image that enlarges itself. I have created the animation that enlarges itself as a movie symbol. But now I don't know how to get a mouse click to launch that file. If anyone can help I would appreciate it.

View Replies !    View Related
Right Mouse Click
Dear Friends,

I want to use the right mouse button as an action in Action Script and I heard that newer Versions of Flash are supporting this.
I use Flash CS3 - Is there a way for detecting a right click from the user (in a Webbrowser, for example)?
And how can I disable the menu - because this is usually shown when the user clicks the right mouse button and in this case this is disturbing, because I want to use an own custom reaction.

Thank you very much for your help and support!
With best regards
InnoRex

View Replies !    View Related
Right Mouse Click
Instead of using onRelease, is there a function for the right mouse button, I can't seem to find one.

Thanks.

Rob Childress

View Replies !    View Related
Right Mouse Click
Is there a way to track the right mouse button in an onRelease function ?

Thanks.


Rob Childress

View Replies !    View Related
Right Mouse Click
All I need to do is have a movieclip that the user clicks on with the right mouse which triggers a "gotoAndStop" function.

I don't see how ContextMenu helps me with this when I don't need a menu.

There is no way to detect a RightMouseDown ???

How about AS 3.0 ?


Rob Childress

View Replies !    View Related
Get URL On Mouse Click
Hey, I know this is basic, but i'm not a programmer, and just trying to make a button in flash link to a URL when clicked on. I have the button and flash knows it is a button, but every piece of code i try, flash doesn't like it, and I don't know what to do....

here is the last code i tried, but it like other stuff just gives errors when i run the flash check.

function trailer(evt:MouseEvent):void {
var url:String = "

View Replies !    View Related
How Do I Know What ..this.. Is When I Click On The Mouse?
I have a tons of dynamically created movie clip on my movie. I'm having trouble knowing which one I'm on. How can I tell which one I'm on when I click on the mouse?

Raymond

View Replies !    View Related
Mouse Click
is there a way to make it so the mouse right click something happens left click double click etc.. do stuff, can you teach me how to make that mouse trick happen....if you can do that

View Replies !    View Related
Mouse Over & On Click Help
Hi,
I want to create a menu system which plays a MC on roll-over and a different MC on Click.
I dont want them to cut out as the mouse moves of the button so i guess I have to use Actionscript.

My question is what is the correct syntax for 'on Rollover' to call an MC other than the one on the stage ?


Thanks,

View Replies !    View Related
Get Mouse Right Click UP And Down
Dear readers,
I need find out MOUSE RIGHT CLICK UP and DOWN Event.
I am already try to "ASnative(800, 2)(2)" and "Key.isDown(2)".
these method support window only. I need its support LINUX also.
Please help me.

Reagrds
sathishkumar

View Replies !    View Related
Right Click On Mouse
Is it possible for Flash to 'notice' when the Right Mouse Button is clicked?
For instance:
The player press the Right Mouse Button and a message would appear like: "Don't cheat!" or whatever.

Is it possible? And if so, could someone direct me on how to do it...

Thank you in advance.

View Replies !    View Related
Right Mouse Click
Trying to find a tutorial on fucntions for the mouse right button. I would like something like this running.

onClipEvent (rightMouseDown) {
endX = _root._xmouse;
endY = _root._ymouse;
}

Obviously this doesnt work but is it possible to get something similar working?

View Replies !    View Related
Right Mouse Click
How do i disable the right click button on the mouse and allow it to do something else? Maybe make my own menu come out?

View Replies !    View Related
Right Mouse Click
Can Flash be made to respond to Right Mouse clicks in the same way as it does to the usual left click.

Ideally I would like the code for the right click equivelent of

on(release) etc

Thanks

Martin

View Replies !    View Related
How Do I Know What ..this.. Is When I Click On The Mouse?
I have a tons of dynamically created movie clip on my movie. I'm having trouble knowing which one I'm on. How can I tell which one I'm on when I click on the mouse?

Raymond

View Replies !    View Related
Mouse Click
is there a way to make it so the mouse right click something happens left click double click etc.. do stuff, can you teach me how to make that mouse trick happen....if you can do that

View Replies !    View Related
Mouse Over & On Click Help
Hi,
I want to create a menu system which plays a MC on roll-over and a different MC on Click.
I dont want them to cut out as the mouse moves of the button so i guess I have to use Actionscript.

My question is what is the correct syntax for 'on Rollover' to call an MC other than the one on the stage ?


Thanks,

View Replies !    View Related
Right Click Of The Mouse
we do a program in flash mx,I want to use the right click of the mouse.
is it can show some item like in the windows system.eg.copy,paste,move....,who can tell me?thanks!

View Replies !    View Related
Right Mouse Click?
Using Windows and MX...

Is there an Actionscript method for accessing the right mouse button to control a button or movie?

Thanks

View Replies !    View Related
Can I Control The Right Mouse Click..?
If I design a menu,
Can I show it when I click the right mouse?
If possible, how should I do it?
Thanks.....

View Replies !    View Related
Mc Following Mouse Via On Click? - Help A Newbie
Hi all,

I have created an mc that I would like to have follow the mouse (very slowly) by click on it. Clicking again on the mc would then return it to the original position. Is there a nice flasher will lend a scripting hand? Maybe a tutorial is out there that I couldn't find? Any help would be great!

tHeDoSe

View Replies !    View Related
On Mouse Event Dbl Click?
Hello

How can i made a buton that will activate on dbl click mouse event ??? Is that posible?

thanx

View Replies !    View Related
How To Get Rid Of The Right Mouse Click Pop Up Menu
how to get rid of the right mouse click pop up menu in swf preview on the internet browser?
(so it will not show all rhe options like print, play and so on)

thanx

[Edited by ronen_d on 09-26-2001 at 08:22 AM]

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved