# This not returning correct value

**URL:** <https://forum.kirupa.com/t/this-not-returning-correct-value/227873>\
**Category:** Uncategorized\
**Created:** [June 3, 2007, 11:13am UTC](https://forum.kirupa.com/t/this-not-returning-correct-value/227873 "2007-06-03T11:13:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mythic\_Fr0st](https://avatars.discourse-cdn.com/v4/letter/m/4da419/32.png) [@Mythic\_Fr0st](https://forum.kirupa.com/u/Mythic_Fr0st)\
**Post date:** [June 3, 2007, 11:13am UTC](https://forum.kirupa.com/t/this-not-returning-correct-value/227873/1 "2007-06-03T11:13:52Z")

</div>

```auto
function func_mainScrImg(e:Event)
{
    for (i = 0; i<p.n; i++)
    {
        if (this == p.movie*)
        {
            p.main.scr = new stage["img"+i]
        }
    }
}

```

if I trace (this.name) its root1

if I trace my movieclips (p.movie\*) its instance 12-22)

this is the event listener I added to it

```auto
p.movie*.addEventListener(MouseEvent.MOUSE_DOWN, func_mainScrImg)

```

now, it seems fine to me, but doesn’t work? it should check properly

any idea’s what im doin wrong?)
