I am trying to check when the right button of the mouse is up. I have tried to create an EventListener for RIGHT_MOUSE_UP, but it returns an error (1119: Access of possibly undefined property RIGHT_MOUSE_UP through a reference with static type Class.), while MOUSE_UP doesn’t work. How I can do this?
EDIT:
public function mouseOverHandler( evt:MouseEvent )
{
if( evt.buttonDown == true )
{
this.addEventListener( MouseEvent.MOUSE_UP, onMouseRelease);
curState_ = 2;
if( animated_ == true )
{
// Stuff
}
else
{
// Stuff
}
}
else
{
// Stuff
}
dispatchEvent(new CustomButtonEvent(CustomButtonEvent.OVER));
}
check this tip http://www.leebrimelow.com/?p=3253
he said you need FP 11.2 beta for using ‘MouseEvent.RIGHT_CLICK’ event.