Reputation: 848
is it possible to make a transparent rect clickable? I don't want to fill it so it looks like
shape.graphics.setStrokeStyle(2).beginStroke("#000").rect(0, 0, 100, 100)
Upvotes: 6
Views: 3395
Reputation: 848
here is the code how I did it:
var shape = new createjs.Shape();
shape.graphics.setStrokeStyle(2).beginStroke("#000").rect(0, 0, 100, 100);
var hit = new createjs.Shape();
hit.graphics.beginFill("#000").rect(0, 0, 100, 100);
shape.hitArea = hit;
Upvotes: 13