6

透明な四角形をクリック可能にすることは可能ですか? 私はそれを埋めたくないので、それは次のようになります

     shape.graphics.setStrokeStyle(2).beginStroke("#000").rect(0, 0, 100, 100)
4

1 に答える 1

13

これが私がやったコードです:

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;
于 2013-06-03T07:41:29.527 に答える