Adobe® Flex® 4 Language Reference
Hide Packages and Classes List |  Packages  |  Classes  |  Index  |  Appendixes
mx.automation 
IAutomationMouseSimulator 
Packagemx.automation
Interfacepublic interface IAutomationMouseSimulator
Implementors AutomationManager

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

The IAutomationMouseSimulator interface describes an object that simulates mouse movement so that components capturing the mouse use the simulated versions of the mouse cursor instead of the live Flash Player version. Implementors of the IUIComponent interface should override the mouseX and mouseY properties and call the active simulator's version if a simulator is present.

See also



Public Methods
 MethodDefined By
  
Called when a DisplayObject retrieves the mouseX property.
IAutomationMouseSimulator
  
Called when a DisplayObject retrieves mouseY property.
IAutomationMouseSimulator
Method Detail

getMouseX

()method
public function getMouseX(item:DisplayObject):Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Called when a DisplayObject retrieves the mouseX property.

Parameters

item:DisplayObject — DisplayObject that simulates mouse movement.

Returns
Number — The x coordinate of the mouse position relative to item.

getMouseY

()method 
public function getMouseY(item:DisplayObject):Number

Language Version: ActionScript 3.0
Product Version: Flex 3
Runtime Versions: Flash Player 9, AIR 1.1

Called when a DisplayObject retrieves mouseY property.

Parameters

item:DisplayObject — DisplayObject that simulates mouse movement.

Returns
Number — The y coordinate of the mouse position relative to item.