滚动和鼠标之间有什么区别? [英] what is the difference between roll over and mouse over?

查看:120
本文介绍了滚动和鼠标之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在flex中,翻转和鼠标悬停有什么区别?

In flex what is the difference between rollover and mouseover?

它首先翻转,然后鼠标悬停,然后鼠标悬停,然后滚出。
当这些事件最合适?

it occurs first rollover, then mouseover,then mouseout, then rollout. when these events most suitable?

推荐答案

AS3文档


每当鼠标进入显示对象容器的任何子对象的区域时,即使鼠标已经在显示对象容器的另一个子对象上,mouseOver事件也会被调度。这是与rollOver事件的目的不同的行为,这是为了简化具有子代的显示对象容器的卷展行为的编码。当鼠标从不是其子项之一的对象进入显示对象的区域或其任何子项的区域时,显示对象将调度rollOver事件。 rollOver事件将连续地从对象的父链中分派出来,从最高的父级开始,该父对象既不是相关对象的根目录也不是祖先,并以对象结尾。

The mouseOver event is dispatched each time the mouse enters the area of any child object of the display object container, even if the mouse was already over another child object of the display object container. This is different behavior than the purpose of the rollOver event, which is to simplify the coding of rollout behaviors for display object containers with children. When the mouse enters the area of a display object or the area of any of its children from an object that is not one of its children, the display object dispatches the rollOver event. The rollOver events are dispatched consecutively down the parent chain of the object, starting with the highest parent that is neither the root nor an ancestor of the relatedObject and ending with the object.

这篇关于滚动和鼠标之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆