# Targeting Problem with Mouseevent-listeners

**URL:** <https://forum.kirupa.com/t/targeting-problem-with-mouseevent-listeners/275102>\
**Category:** flash\
**Created:** [November 9, 2008, 9:34pm UTC](https://forum.kirupa.com/t/targeting-problem-with-mouseevent-listeners/275102 "2008-11-09T21:34:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Surekin](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@Surekin](https://forum.kirupa.com/u/Surekin)\
**Post date:** [November 9, 2008, 9:34pm UTC](https://forum.kirupa.com/t/targeting-problem-with-mouseevent-listeners/275102/1 "2008-11-09T21:34:44Z")

</div>

Hey there,

i’m experiencing targeting problems with my MouseOver and out Events…f.e. i put a Over-listener on a mc with a simple square and textfield \_\> it works fine, but when i add a dynamic textfield into the button which i filled from outside i get an there is no target found error. how can i get arround this?

this is the function:

```auto

function outBtn(event:MouseEvent):void
  {
   event.target.gotoAndStop("out");
  }

```

seems like as3 takes the dynamic textfield as target when i click on this button…
