So I'm having a difficult time getting shapes I've created with PIXI to respond to Events such as mousedown.
Here's an example of what I've tried/know
Spoiler
Code:
var exShape = new PIXI.Graphics()
exShape.lineStyle(1, 0xFFFFFF, 1);
exShape.beginFill(0xFFFFFF);
exShape.drawCircle(0, 0, 100);
exShape.graphicsData[0].shape.hitArea = new PIXI.Circle(0, 0, (exShape.graphicsData[0].shape.width / 2));
exShape.interactive = true;
exShape.buttonMode = true;
exShape.on('mousedown', exFunc);
//Define exFunc
var exFunc = function(ev) {
console.log("It worked");
}I've researched a lot on other sites, and on here. I found a thread started by Tsukihime that was eventually answered by Hudell, but I didn't quite understand what was happening and don't think it applies to my question. Any help would be much appreciated.