10
gesture

challenge

create a class file that extends MovieClip and adds an event listener for MouseEvent.MOUSE_MOVE.

in the event handler function, compute the distance from the movie clip to the mouse:

private function distance(x1:Number, y1:Number,   x2:Number, y2:Number) {
   var dx:Number = x2 - x1;
   var dy:Number = y2 - y1;
   return Math.sqrt(dx*dx + dy*dy);
}

use the distance value to change some property of the movie clip, e.g. size: grow dots [swf] [as] [fla]