kirupa.com - Flash Tutorial: Detecting Direction of Mouse Movement in AS3

by kirupa | 1 October 2008

In ActionScript 2, you had the watch function that, among many things, allowed you to detect which direction your mouse cursor was moving. There is a tutorial on how to do that on kirupa.com itself. In ActionScript 3, I couldn�t find the watch function nor an equivalent replacement, but creating your own function that shows you how to detect the direction of mouse movement is not very complicated.


This is a companion discussion topic for the original entry at http://www.kirupa.com/developer/flashcs3/detecting_direction_mouse_movement.htm