Tutorials, extensions, and source files for ActionScript, Flash, and other Adobe products.

 

senocular.com ActionScript Library

VirtualMouseMouseEvent.as

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package com.senocular.ui {
	
	import flash.display.InteractiveObject;
	import flash.events.MouseEvent;
	
	/**
	 * Wrapper for the MouseEvent class to let you check
	 * to see if an event originated from the user's mouse
	 * or a VirtualMouse instance.
	 */
	public class VirtualMouseMouseEvent extends MouseEvent implements IVirtualMouseEvent {
		public function VirtualMouseMouseEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, localX:Number = NaN, localY:Number = NaN, relatedObject:InteractiveObject = null, ctrlKey:Boolean = false, altKey:Boolean = false, shiftKey:Boolean = false, buttonDown:Boolean = false, delta:int = 0){
			super(type, bubbles, cancelable, localX, localY, relatedObject, ctrlKey, altKey, shiftKey, buttonDown, delta);
		}
	}
}