does anyone know how to make right clicking work in as3?
i don't want a context menu to appear, i just want it to work as an EventListener for MovieClips.
For example, imagine that RIGHT_CLICK is a MouseEvent, it would look like this:
any ideas? i know the code wont end up looking like this, but does anyone know how to pull off this same idea using a right click?Code:myButton.addEventListener(MouseEvent.RIGHT_CLICK, rightClicked); function rightClicked(e:MouseEvent):void{ my function in here); }
i also saw somtehing like this:
but its not currently working properlyCode:myButton.addEventListener(MouseEvent.buttonDown, rightClicked); function rightClicked(e:MouseEvent):void{ if(return=false){ (my function in here); }




Reply With Quote
