# Problems spacing loaded objects, stuck!

**URL:** https://forum.kirupa.com/t/problems-spacing-loaded-objects-stuck/246773
**Category:** flash
**Created:** [December 14, 2007, 10:44am UTC](https://forum.kirupa.com/t/problems-spacing-loaded-objects-stuck/246773 "2007-12-14T10:44:01Z")
**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: [December 14, 2007, 10:44am UTC](https://forum.kirupa.com/t/problems-spacing-loaded-objects-stuck/246773/1 "2007-12-14T10:44:01Z")

</div>

Code as follows, I simply need to define a different X vaule to each loaded box, I think i’m getting muddled now though:

//Define the xValue globally  
var currentX:Number = 0;

//step 1: create the empty MC  
game={xValue:0, yValue:0};  
game.clip = \_root.createEmptyMovieClip(‘empty’, this.getNextHighestDepth());

for(var i=0;i\<8;i++){  
var thumb:MovieClip = empty.createEmptyMovieClip(‘box’+i, this.getNextHighestDepth());  
var Holder:MovieClip = empty[‘box’+i].attachMovie(‘box’, ‘new’, this.getNextHighestDepth());  
\_root.empty[‘box’+i].xValue = \_root.empty[‘box’+i].\_x;  
//\_root.empty[‘box’+i].\_x = \_root.empty[‘box’+i].xValue;  
this.xValue = currentX;  
currentX += 15;  
trace(this.xValue);  
}
