Flash MX 2004.
tools.snapPoint(pt)
pt Specifies the location of the point for which you want to return a snap point.
A new point that may be adjusted or snapped to the nearest geometric object.
Method; takes a point as input and returns a new point that may be adjusted or snapped to the nearest geometric object. If snapping is disabled in the View menu in the Flash user interface, the point returned is the original point.
The following example returns a new point that may be snapped to the nearest geometric object.
var theSnapPoint = fl.tools.snapPoint(pt1);