right click WIHTOUTH context menu
if this is the code:
i
Code:
mport flash.display.*;
import flash.external.ExternalInterface;
function RightClick()
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var methodName:String = "rightClick";
var method:Function = onRightClick;
ExternalInterface.addCallback(methodName, method);
}
function onRightClick():void {
var mx:int = stage.mouseX;
var my:int = stage.mouseY;
if(my> 0 && my <stage.stageHeight && mx> 0 && mx <stage.stageWidth) {
trace("mastButton"+" was rightCLICKED");
}
}
then where do i tell it that i want to have the MouseEvent EventListener on my movieclip labeled "mastButton" ??
(obviously i know its not really a MouseEvent but do u know what i mean? like how to i link this right click event TO a particular movieclip??)