dcsimg
A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: right mouse click!

  1. #1
    Junior Member
    Join Date
    Jan 2004
    Posts
    22

    right mouse click!

    Hello all,

    I am trying to trigger events from the click of the right mouse button. Does anyone know how to trap the right mouse click in actionscript?

    Thanks
    Stee

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You can trap it... But it will open up the right-click context menu, and that's a whole other story!
    code:

    stop();
    this.onEnterFrame = function(){
    if(Key.isDown(2)){
    trace("Right Click")
    }
    };


  3. #3
    Junior Member
    Join Date
    Jan 2004
    Posts
    22
    Thanks for the info.

    Do you happen to know how to remove the standard right mouse menu so that I can replace it with my own?

    Thanks again much appreciated
    Stee

  4. #4
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    With MX2004 only...

    http://www.actionscripts.org/tutoria...nu/index.shtml

    Up until MX, you can only somewhat disable it, but it'll still show Settings and the MM credit/link.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center