When you want to do hit detection in createjs

The hitTest method is provided.
However, as a precaution, the coordinate information must be converted from a global variable to a local variable. After conversion, it was done.
http://cuaoar.jp/2012/04/createjs-1.html
http://mikelito.com/blog/?p=428
I think the second one would be more helpful.
Click here for specifications
http://www.createjs.com/Docs/EaselJS/classes/Shape.html