You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

No source code , you have to figure it out yourself!

In order to do hit test correct, you have to use

timeCircle.globalToLocal( x , y );
to convert the global coordinate into local coordinate.
 
sample :
var pt = timeCircle.globalToLocal( stage.mouseX, stage.mouseY );
		if (!timeCircle.hitTest( pt.x, pt.y )){...}

alternate content
  • No labels