A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Detect Right Click

  1. #1
    Developer
    Join Date
    Apr 2007
    Location
    UK
    Posts
    324

    Detect Right Click

    I dont think there is an answer to this question.

    In Flash 8 you could detect a right click (yes I know its useless in Flash normally) by simply watching if

    Key.isDown(2) is equal to true.

    With the new Keyboard class this is not possible.

    Is it possible to detect a right-click in AS3 or have Adobe removed it completely?

  2. #2
    Senior Member
    Join Date
    Oct 2002
    Posts
    126
    Sorry I don´t know but I wonder why the right mouse button is not customizable in Flash?
    At least why is it not optional?
    The right click could e.g. give extra control feature for flash games and the possibility to create customized right menus with different layouts.

  3. #3
    Heli Attack! iopred's Avatar
    Join Date
    Jun 2003
    Location
    Sydney, Australia
    Posts
    923
    It is possible to create custom right click menus still. But detecting right mouse has always been a hack. I guess they just got rid of it.
    Christopher Rhodes
    squarecircleco.

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