# dropTarget

**URL:** <https://forum.kirupa.com/t/droptarget/225576>\
**Category:** flash\
**Created:** [May 13, 2007, 11:35pm UTC](https://forum.kirupa.com/t/droptarget/225576 "2007-05-13T23:35:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiosk77](https://avatars.discourse-cdn.com/v4/letter/k/8c91f0/32.png) [@kiosk77](https://forum.kirupa.com/u/kiosk77)\
**Post date:** [May 13, 2007, 11:35pm UTC](https://forum.kirupa.com/t/droptarget/225576/1 "2007-05-13T23:35:45Z")

</div>

The following method lives in a class called View which extends Sprite, I’m trying to call a method after the clip is drag on top of another View. But I can’t call any methods on dropTarget (which I think its the View that I’m dragging on top of ) what am I doing wroing? thank you in advance.

```auto

private function endDrag( evt:MouseEvent ):void {
            evt.stopPropagation();
            stopDrag();
            if ( dropTarget ) {
                x = 0; y = 0;
                trace( dropTarget.someMethod);
            }
            if ( owner ) owner.update();
}

```
