# Problems positioning inside a movieClip

**URL:** <https://forum.kirupa.com/t/problems-positioning-inside-a-movieclip/244749>\
**Category:** Uncategorized\
**Created:** [November 21, 2007, 12:17pm UTC](https://forum.kirupa.com/t/problems-positioning-inside-a-movieclip/244749 "2007-11-21T12:17:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ubermeowmix](https://avatars.discourse-cdn.com/v4/letter/u/7cd45c/32.png) [@Ubermeowmix](https://forum.kirupa.com/u/Ubermeowmix)\
**Post date:** [November 21, 2007, 12:17pm UTC](https://forum.kirupa.com/t/problems-positioning-inside-a-movieclip/244749/1 "2007-11-21T12:17:23Z")

</div>

The \_x values of the objects loaded will not update, why am i having such problems changing the values within movies?

CODE:

var speed:Number=1.5;  
//  
\_root.createEmptyMovieClip(‘empty’, this.getNextHighestDepth());  
function createSnow(){  
for (var i=0;i\<20;i++){  
\_root.empty.createEmptyMovieClip(‘holder\_mc’, this.getNextHighestDepth());  
\_root.empty.holder\_mc.attachMovie(‘black\_snow’, ‘snow’+i, this.getNextHighestDepth());  
var newXPos:Number=Math.floor(Math.random(200)\*200);  
\_root.empty[‘snow’+i].\_x=newXPos;  
trace(newXPos);  
}  
}  
createSnow();
