# Can't locate moveClip

**URL:** https://forum.kirupa.com/t/cant-locate-moveclip/195147
**Category:** flash
**Created:** [July 28, 2006, 6:34pm UTC](https://forum.kirupa.com/t/cant-locate-moveclip/195147 "2006-07-28T18:34:37Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gregmax17](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/gregmax17/32/2243_2.png) [@gregmax17](https://forum.kirupa.com/u/gregmax17)
#### Post date: [July 28, 2006, 6:34pm UTC](https://forum.kirupa.com/t/cant-locate-moveclip/195147/1 "2006-07-28T18:34:37Z")

</div>

This will be hard for me to explain, but please bare with me.

I have loaded an external .swf file on to the stage with multiple movieClips in it. From the main timline of which I load this external .swf file, I am moving the movieclip(s) around the stage (with the commands of the arrow key). On the main timeline I have this:

function this\_function() {  
trace(mc\_holder.village.\_x);  
}

onEnterFrame = function() {

trace(mc\_holder.village.\_x); //just to view the position of the external .swf file x value

IF(this occurs) {  
this\_function();  
} ELSE {  
that\_function();  
}

//rest of stuff below

}

When I trace the village on the onEnterFrame function, I am successful in viewing the value/position of the village in the in the external .swf file. However, if ‘this\_occurs’ and I tell it to use the function ‘this\_function’, where I tell it to trace the village again, it doesn’t recongize the movieClip, or village. Instead of giving me a value, it just gives me ‘undefined’. So why is it that the ‘this\_function’ can’t locate the external .swf file village? Hopefully I explained it so you can understnad my problem.

Thanks
