mx.automation

# IAutomationMouseSimulator - AS3 Flex

Package | mx.automation
Interface | public 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.

Learn more

Understanding the automation framework

Related API Elements

mx.core.IUIComponent

Public Methods

| Method | Defined By
--- | --- | ---
|  | getMouseX(item:DisplayObject):Number Called when a DisplayObject retrieves the mouseX property. | IAutomationMouseSimulator
|  | getMouseY(item:DisplayObject):Number 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.

© 2015 Adobe Systems Incorporated. All rights reserved.
Mon Apr 10 2017, 12:28 PM -07:00