# Get

**URL:** <https://forum.kirupa.com/t/get/277403>\
**Category:** Uncategorized\
**Created:** [December 11, 2008, 4:09pm UTC](https://forum.kirupa.com/t/get/277403 "2008-12-11T16:09:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![inALilBit](https://avatars.discourse-cdn.com/v4/letter/i/ecae2f/32.png) [@inALilBit](https://forum.kirupa.com/u/inALilBit)\
**Post date:** [December 11, 2008, 4:09pm UTC](https://forum.kirupa.com/t/get/277403/1 "2008-12-11T16:09:23Z")

</div>

I am trying to see if a user drags one movieclip over one of 5 other movieclips. Only problem is I cannot dectect if the user is actually over that movieclip. Before I split my main class into two sepeate class, this worked:

```auto
            if( event.target.dropTarget != null ){
                
                for(i = 0; i < HAND_MAX; i++){
                    var myTarget:DisplayObject = MovieClip(root).getChildByName("mcCardSlot" + i);
                    trace(myTarget);
                    trace(event.target.dropTarget.name);
                    if( event.target.hitTestObject(myTarget) ) {
                        trace("I am over a slot");
                        cardSlotSelect(i);
                        break;
                    }
                }
            }

```

Getting this error:  
TypeError: Error #1034: Type Coercion failed: cannot convert flash.display::Stage@53381e9 to flash.display.MovieClip.  
at com.duel::CardThumbnail/::putDown()

I have no idea waht went wrong.
