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)
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With