# How to have a MOUSE\_OVER event when dragging over?

**URL:** <https://forum.kirupa.com/t/how-to-have-a-mouse-over-event-when-dragging-over/289799>\
**Category:** flash\
**Created:** [June 4, 2009, 9:04pm UTC](https://forum.kirupa.com/t/how-to-have-a-mouse-over-event-when-dragging-over/289799 "2009-06-04T21:04:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitaltech](https://avatars.discourse-cdn.com/v4/letter/v/bbce88/32.png) [@vitaltech](https://forum.kirupa.com/u/vitaltech)\
**Post date:** [June 4, 2009, 9:04pm UTC](https://forum.kirupa.com/t/how-to-have-a-mouse-over-event-when-dragging-over/289799/1 "2009-06-04T21:04:21Z")

</div>

Hello, I have a item1 that needs to have a MOUSE\_OVER effect when item2 is dragged over it. How can I do that?

```php

item1.addEventListener(MouseEvent.MOUSE_OVER, backover);

function backover (e:MouseEvent):void {
    this.item1 .gotoAndStop(2);
}

```

This works with a regular mouse over but not when dragging another object over it.

Thanks
