Right click is it possible

I wouldnt get your hopes up too high about all of this though. It isnt infallible. For instance, in right clicking, all mouse position detection is halted (and the movie must first be focused through clicking before its even detected at all). Also right-clicking and dragging a little will change tha value of Key.isDown(2) to false. Heres an example of a menu used with this. Play around with it a little and you can see what problems may arise.

By the way, that code does NOT stop the menu from coming up. You cant stop that - atleast not on any web page or within Flash (certain projector utilities allow you to bypass it). This just adds an event which lets any object listening to the Mouse object recieve an onRightMouseDown even handle just like the regular onMouseDown event. In detecting that, you can do whatever you want, even make your own menu to trail off the existing Flash menu… ie…

http://userpages.umbc.edu/~tmccau1/flash/rightclickmenu.html

We are making this to difficult try on frame 1:

stop();
this.onEnterFrame = function(){
if (Key.isDown(2)){
getURL(“http://www.yahoo.com”, “_blank”);
gotoAndPlay(2);
}
}
Ya gotta go to another frame or else it’ll pop up a bunch of windows

the point of the

	if (Key.isDown(2) && Key.isDown(2) != this.rightWasDown) Mouse.broadCastMessage("onRightMouseDown");
	this.rightWasDown = Key.isDown(2);

was to prevent that repitition

Thanks a bunch guys I will look into it further when I get home today.

sen:
I know but it had a bug…and I thought about it and got cofused and scared so I just cheated…

:We are the Knights who say NI: