用于 Adobe® Flash® Platform 的 ActionScript® 3.0 参考
主页  |  隐藏包列表和类列表 |   |   |  新增内容  |  索引  |  附录  |  为什么显示为英语?
过滤条件: 正在从服务器检索数据...
正在从服务器检索数据...
mx.automation 

IAutomationMouseSimulator  - AS3 Flex

mx.automation
接口public interface IAutomationMouseSimulator
实现器 AutomationManager

语言版本: ActionScript 3.0
产品版本: Flex 3
运行时版本: Flash Player 9, AIR 1.1

IAutomationMouseSimulator 接口描述模拟鼠标移动的对象,以便捕获鼠标的组件使用模拟的鼠标光标版本,而不是实时 Flash Player 版本。IUIComponent 接口的实现器应覆盖 mouseXmouseY 属性并调用活动模拟器的版本(如果存在模拟器)。

相关 API 元素



公共方法
 方法由以下参数定义
  
在 DisplayObject 检索 mouseX 属性时调用。
IAutomationMouseSimulator
  
在 DisplayObject 检索 mouseY 属性时调用。
IAutomationMouseSimulator
方法详细信息

getMouseX

()方法
public function getMouseX(item:DisplayObject):Number

语言版本: ActionScript 3.0
产品版本: Flex 3
运行时版本: Flash Player 9, AIR 1.1

在 DisplayObject 检索 mouseX 属性时调用。

参数

item:DisplayObject — 模拟鼠标移动的 DisplayObject。

返回
Number — 相对于项目的鼠标位置的 x 坐标。

getMouseY

()方法 
public function getMouseY(item:DisplayObject):Number

语言版本: ActionScript 3.0
产品版本: Flex 3
运行时版本: Flash Player 9, AIR 1.1

在 DisplayObject 检索 mouseY 属性时调用。

参数

item:DisplayObject — 模拟鼠标移动的 DisplayObject。

返回
Number — 相对于项目的鼠标位置的 y 坐标。




[ X ]为什么显示为英语?
《ActionScript 3.0 参考》中的内容以英语显示

《ActionScript 3.0 参考》中的部分内容未翻译成所有语言。当某个语言元素未翻译时,将显示为英语。例如,ga.controls.HelpBox 类未翻译成任何语言。因此在简体中文版的参考中,ga.controls.HelpBox 类显示为英语。