# Path problem - going nuts here

**URL:** <https://forum.kirupa.com/t/path-problem-going-nuts-here/249889>\
**Category:** Uncategorized\
**Created:** [January 23, 2008, 2:23pm UTC](https://forum.kirupa.com/t/path-problem-going-nuts-here/249889 "2008-01-23T14:23:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Flashkiddy](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@Flashkiddy](https://forum.kirupa.com/u/Flashkiddy)\
**Post date:** [January 23, 2008, 2:23pm UTC](https://forum.kirupa.com/t/path-problem-going-nuts-here/249889/1 "2008-01-23T14:23:17Z")

</div>

The outcome of this code is really weird. Look at this code:

```auto
private function showStopmotionAnimation( pId:Number , pShow:Boolean ):Void
    {
        trace(" ******************************************************");
        trace("type : = "+typeof(mPanoImg));
        trace("1 : "+mPanoImg);
        trace("2 : "+_level0.game_mc.container_mc.scroller_mc.image_mc["mc"+pId]);
        trace("3 : "+mPanoImg["mc"+pId]);
        trace("4 : "+mPanoImg.mc3);
    }

```

It outputs the following:

```auto
******************************************************
type : = movieclip
1 : _level0.game_mc.container_mc.scroller_mc.image_mc
2 : _level0.game_mc.container_mc.scroller_mc.image_mc.mc3
3 : undefined
4 : undefined

```

I want to use the 3rd version:

```auto
mPanoImg["mc"+pId]

```

But it always returns undefined.  
Do you get what the problem is? “mPanoImg” has been defined as a member of type MovieClip:

```auto
private var mPanoImg:MovieClip;

```

and later on

```auto
mPanoImg = mAssets.scroller_mc.createEmptyMovieClip( "image_mc" , 0 );

```

I have no idea what is happening here, never seen this before and i work a lot with Flash ☹

Here is my complete class, for those who are interested
