You are Here:Home>>Old Posts>>Tutorial | Actionscript 3 Mouse Tracking (Video Tutorial)

Tutorial | Actionscript 3 Mouse Tracking (Video Tutorial)

By | 2008-05-04T22:34:20+00:00 May 4, 2008|Old Posts|

A video tutorial showing how to create two movieclips that follow the X and Y coordinates of the mouse to give a target like effect, this is ideal for shooting type games.

[vodpod id=ExternalVideo.530261&w=425&h=350&]

About the Author:

A father, a husband and a geek... Biitlog Founder, The Tech Labs founder, among other projects.


  1. June 12, 2008 at 9:11 am - Reply

    For those who are too lazy to type the code they saw in the video, here it is:

    var lineX:linex = new linex();
    var lineY:liney = new liney();



    function track(e:event):void
    lineX.y = mouseY;
    lineY.X = mouseX;

    Want to play free flash games or put them on your MySpace or Facebook profile?
    Free Flash Games For Your Profile

  2. Alayas September 6, 2008 at 10:07 am - Reply

    there is an error !

    it says with this function

    function track(e:event):void


  3. gdfg September 15, 2008 at 7:40 pm - Reply

    function track(e:event):void
    The e in event should be E

    lineY.X = mouseX;

    The .X should be .x

Leave a Reply