A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: right clicking

  1. #1
    Senior Member
    Join Date
    Feb 2004
    Location
    California
    Posts
    174

    right clicking

    can flash detect right clicks? how? does this port over to Macs well?

    thanks

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    You can detect right clicks, but the right click is reserved for the Flash context menu. You can only partly disable the context menu and/or add your own menu items (in MX2004 only).

  3. #3
    Senior Member
    Join Date
    Feb 2004
    Location
    California
    Posts
    174
    OH YEAH...we're creating a training application. on one of the steps the directions are "right click the networks icon..."

    wonder what i should do?

  4. #4
    Senior Member catbert303's Avatar
    Join Date
    Aug 2001
    Location
    uk
    Posts
    11,222
    it doesn't work perfectly, but you can detect the right mouse button being clicked using something like this,

    code:

    function checkRightClick() {
    if (Key.isDown(2)) {
    trace("right");
    }
    }

    var rightClickID = setInterval(checkRightClick, 40);


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