# attachMovie and targetpath

**URL:** <https://forum.kirupa.com/t/attachmovie-and-targetpath/110976>\
**Category:** Uncategorized\
**Created:** [May 21, 2004, 4:05pm UTC](https://forum.kirupa.com/t/attachmovie-and-targetpath/110976 "2004-05-21T16:05:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kovax](https://avatars.discourse-cdn.com/v4/letter/k/7ab992/32.png) [@Kovax](https://forum.kirupa.com/u/Kovax)\
**Post date:** [May 21, 2004, 4:05pm UTC](https://forum.kirupa.com/t/attachmovie-and-targetpath/110976/1 "2004-05-21T16:05:34Z")

</div>

I placed a movie clip onto the stage using the following code:

\_root.attachMovie(“mc”, “h1”, 5);

I then want to access this movie clip’s properties. When I try

onEnterFrame = function () {  
trace(eval(\_level5.h1.\_x));  
};

I get an ‘undefined’. Any ideas? :puzzle:

Thanks.
