# Apply glow filter on target MC while dragging an object and rolling over the target

**URL:** <https://forum.kirupa.com/t/apply-glow-filter-on-target-mc-while-dragging-an-object-and-rolling-over-the-target/219802>\
**Category:** Uncategorized\
**Created:** [March 20, 2007, 10:38am UTC](https://forum.kirupa.com/t/apply-glow-filter-on-target-mc-while-dragging-an-object-and-rolling-over-the-target/219802 "2007-03-20T10:38:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sparky1980](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sparky1980/32/2883_2.png) [@sparky1980](https://forum.kirupa.com/u/sparky1980)\
**Post date:** [March 20, 2007, 10:38am UTC](https://forum.kirupa.com/t/apply-glow-filter-on-target-mc-while-dragging-an-object-and-rolling-over-the-target/219802/1 "2007-03-20T10:38:27Z")

</div>

I can get my filter to apply to a movie clip if i simply rollover or roll out of it. When the mouse rolls out, the filter is set to undefined. The problem I am having is that I want the object that is in effect the hit area to glow (have a filter applied) when the draggable object is being dragged over it.

This would make is easier for the user to visually identify that where they are currently hovering over, whilst dragging, is the area that they should drop the object.

Part of my code looks like this

```auto

this.onRollOver = function () {
    if(_global.isDragging == 1){
        this.filters = glowFilterArray;
    }
}

this.onRollOut = function () {
    _global.isDragging = 0;
    this.filters = undefined;
}

```

\_global.isDragging is set to 1 at the onPress stage, when startDrag occurs.  
\_global.isDraggin is set to 0 onRelease of the draggable object.

Are there any ideas for a solution?
