# A Quest!

**URL:** <https://forum.kirupa.com/t/a-quest/216026>\
**Category:** flash\
**Created:** [February 13, 2007, 2:42am UTC](https://forum.kirupa.com/t/a-quest/216026 "2007-02-13T02:42:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![akbunny](https://avatars.discourse-cdn.com/v4/letter/a/5e9695/32.png) [@akbunny](https://forum.kirupa.com/u/akbunny)\
**Post date:** [February 13, 2007, 2:42am UTC](https://forum.kirupa.com/t/a-quest/216026/1 "2007-02-13T02:42:35Z")

</div>

greetings,

yet another quest for you my knights, it’s an easyone though.  
I got a button in a mc, you can drag it and then if u let it go ant it “hittests” some mc… the the mccontaining the button will b removed.

The “hittest” mc is in the main timeline, and the dragable button in a mc (els you cant remove it). so my code in the button is:

> 

on(release){  
stopDrag();

if (\_root.testb.hitTest(“\_root.bb”)) {  
removeMovieClip(“\_root.bb”);  
tellTarget (“\_root.bgot”) {  
gotoAndPlay(2);  
}  
}  
}

testb = the “hittest” mc  
bb = the mc that contains the button  
bgot = a mc that will play when testb hittests bb.

when I test the movie and drag bb over testb and release it, i get:

Target not found: Target=“\_root.bgot” Base=“?”

i know… it will look 4 the root of the button in with i do the as. so it’s not looking for bgot in the main timeline.

BUT how should i wright it down then? i tryd /\_level0 and /\_level0.root. but it’s just not working.

any1 up 4 the quest? :king:
