# Button's script, target not found?

**URL:** <https://forum.kirupa.com/t/buttons-script-target-not-found/327358>\
**Category:** flash\
**Created:** [February 24, 2012, 5:22am UTC](https://forum.kirupa.com/t/buttons-script-target-not-found/327358 "2012-02-24T05:22:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ghroth](https://avatars.discourse-cdn.com/v4/letter/g/8e7dd6/32.png) [@Ghroth](https://forum.kirupa.com/u/Ghroth)\
**Post date:** [February 24, 2012, 5:22am UTC](https://forum.kirupa.com/t/buttons-script-target-not-found/327358/1 "2012-02-24T05:22:50Z")

</div>

Hey everyone. I’m using cs5.5 with as2 and i’m facing this strange problem:

i have a movieclip (test\_main) on root with 2 movieclips (test\_mc & test\_btn) inside.  
At frame 1 of test\_main i’m writing:

```auto

stop();

test_btn.onRollOver = function()
{
    tellTarget (_parent.test_mc)
    {
        gotoAndPlay(2);
    }
};
test_btn.onRollOut = function()
{
    tellTarget (_parent.test_mc)
    {
        gotoAndPlay(11);
    }
};

```

…and i get

```auto
Target not found: Target="undefined" Base="_level0.test_main"

```

Same with \_parent.test\_mc.gotoAndPlay …no movement.  
I’ve been using this hundred of times back in Flash8 without a tiny problem… but this one is driving me crazy now…

Thanks in advance!
