so Ive been asked to build a simple game in AS3, the problem im having is Ive successfully been able to change the cursor to a rubber mallet, the problem is, I have 4 clips on the timeline, and they dont respond to any click events. Ive even left the mouse to be enabled, and the mallet covers up the ability for the clip to register the click… that sounded confusing but im sure someone knows what im talking about… here is the cursor code:
/*var cursor:MovieClip;
function initializeGame():void
{
cursor = new AngledHammer();
addChild(cursor);
cursor.enabled = true;
cursor.x = this.mouseX;
cursor.y = this.mouseY;
Mouse.hide();
stage.addEventListener(MouseEvent.MOUSE_MOVE, dragCursor)
}
function dragCursor(event:MouseEvent):void
{
cursor.x = this.mouseX;
cursor.y = this.mouseY;
}
initializeGame();
and here is an example of the code inside the clip
stop();
hitBtnA.buttonMode = true;
hitBtnA.addEventListener(MouseEvent.MOUSE_DOWN, smashA)
function smashA(e:MouseEvent){
gotoAndStop(“windowAhit”);
}