Does anyone know if it is possible to determine if a point is inside a DisplayObject? I know I can get the contentBounds property to determine if a point is inside the bounding rectangle, but if I have a shape created by say, display.newPolygon() or a rectangle that has undergone quadrilateral distortion, checking the contentBounds is not really suitable.
The Tap event listener (i.e. rect:addEventListener(“tap”, function ()…) actually seems to respect the vertices of the object when determining if there is a hit, so it seems that there is a way to do it, but I can’t find the API.
Any help is greatly appreciated.
Albert