BOOYAH! SOLVED! Check it out: Put something on the stage and call it "button." Then in your ActionScript code, do this:
Code:
import scaleform.gfx.MouseEventEx; Extensions.enabled = true; button.addEventListener("click", clickHandler); function clickHandler(e:MouseEventEx):void { switch(e.buttonIdx) { case 0: trace("Left click"); break; case 1: trace("Right click"); break; } }
Leave a comment: