topical media & game development
actionscript-events-GlobalMouseMotionSensor.ax
actionscript-events-GlobalMouseMotionSensor.ax
[swf]
flex
package {
import flash.display.*;
import flash.events.*;
public class @ax-actionscript-events-GlobalMouseMotionSensor extends Sprite {
public function @ax-actionscript-events-GlobalMouseMotionSensor () {
stage.addEventListener(MouseEvent.MOUSE_MOVE, mouseMoveListener);
}
private function mouseMoveListener (e:MouseEvent):void {
trace("The mouse moved.");
}
}
}
(C) Æliens
27/08/2009
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.