# Wtf?!

**URL:** <https://forum.kirupa.com/t/wtf/245234>\
**Category:** Uncategorized\
**Created:** [November 27, 2007, 6:47pm UTC](https://forum.kirupa.com/t/wtf/245234 "2007-11-27T18:47:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slade86](https://avatars.discourse-cdn.com/v4/letter/s/cab0a1/32.png) [@slade86](https://forum.kirupa.com/u/slade86)\
**Post date:** [November 27, 2007, 6:47pm UTC](https://forum.kirupa.com/t/wtf/245234/1 "2007-11-27T18:47:33Z")

</div>

why doesn’t this work?! first trace gives the correct coordinate, second one returns “undefined”, please heelp… :puzzle:

function create()  
{  
createEmptyMovieClip(“holder”, this.getNextHighestDepth());  
holder.createEmptyMovieClip(“mc\_1”, this.getNextHighestDepth());  
trace(holder.mc\_1.\_x);  
holder.createEmptyMovieClip(“mc\_2”, this.getNextHighestDepth());  
trace(holder.mc\_1.\_x);  
}

btn.onPress = function()  
{  
create();  
}
