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?