A way for button to hittest using point

[ 2007-02-10 12:52:36 | Author: liuhuan ]
Font Size: Large | Medium | Small
very simple. Here we used the localToGlobal method:
Quote
this.onMouseMove = function() {
  point = new Object();
  point.x = _xmouse;
  point.y = _ymouse;
  localToGlobal(point);
  if (!btn.hitTest(point.x, point.y, true)) {
    delete this.onMouseMove;
  }
};
Comments Feed Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=706

There is no comment on this article.

You can't post comment on this article.