Skip navigation
Currently Being Moderated

MouseEvent.RIGHT_CLICK is undefined at runtime?

Apr 4, 2012 6:13 AM

Tags: #flash #as3 #mouse_event #right_click #undefined

I'm using FlashBuilder 4.6, with Flex SDK version 4.6.0 (build 23201), playerglobal.swc (current one from Adobe's page,, said to be 11.2 as well), the standalone debugger projector ( and same browser flash player plugin (, so by my reckoning, I'm up to date in everywhere I should be, but, if I do


var a:String = MouseEvent.RIGHT_CLICK;


that prints "undefined null".


I want to play around with a few right-click stuff in Flash, but it seems like something's definitely not working correctly.  Anyone got an insight as to what's wrong?

  • Currently Being Moderated
    Apr 4, 2012 8:30 AM   in reply to seaders

    I thought RIGHT_CLICK was only for AIR apps?

    Mark as:
  • Currently Being Moderated
    Apr 4, 2012 2:14 PM   in reply to seaders

    Did you get the 11.2 playerglobal.swc?

    Mark as:
  • Currently Being Moderated
    Apr 4, 2012 5:39 PM   in reply to seaders

    You may have to set –swf-version to a higher number.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points