View Full Version : How to detect Mouse right click
tiru
October 4th, 2005, 02:23 AM
Hi
Iam using flashMx 2004, is there any method to detect mouse right click ?
If user Mouse right clicks i want to execute some actions.How to do this?
If any one know Plz help me.
Thanks in adnvance.
TheCanadian
October 4th, 2005, 02:31 AM
The right-click is reserved for the Flash player menu. You could use control click or something though.
kookaburra
October 4th, 2005, 02:48 AM
var newMenu:ContextMenu = new ContextMenu();
this.menu = newMenu;
newMenu.onSelect = function() {
trace("right click");
};
TheCanadian
October 4th, 2005, 03:12 AM
Okay that is pretty cool but you still have the menu problem.
tiru
October 4th, 2005, 03:23 AM
hey thankyou kookaburra ! is it work in mx too ? what should do it work in mx also.
Thanks again.
kookaburra
October 4th, 2005, 04:30 AM
the class ContextMenu is available only with Flash 7 (mx 2004) with Actionscript 2.0
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.