Okay, when I use the code below, I get the twelth image loaded and positioned in the top left corner of the screen.

I've tried many ways tyo get this code to work, but it just doesn't. I don't get syntax errors but it doesn't do what it's supposed to do.

I could manually create mc's and add code to each mc with no problem, but I want this to be dynamic. Please help.

here's my code

Please have a look
Here is my code:


for(i=1; i<13; i++){ _root.createEmptyMovieClip("menu_mc"+i,_root.getNextHighestDepth()); var mc:MovieClipLoader=new MovieClipLoader();


var x_placement = (i*40); 

var y_placement = 300; var acceleration = 8; var friction = .8; 

menu_mc[i]._x=i*40; menu_mc[i]._y=-100; 

menu_mc[i].dropDown = function() { var 

xdif = x_placement-this._x; 
var ydif = y_placement-this._y; 
this.xspeed += 

this.yspeed += ydif/this._parent.acceleration; 

this.xspeed *= this._parent.friction; 

this.yspeed *= this._parent.friction; 

this._x += this.xspeed; this._y += 

this.yspeed; this.checkDistance(); }; 

menu_mc[i].checkDistance = function() { if (Math.abs(this.targetX-this._x)<0.2 && Math.abs(this.targetY-this._y)<0.2) { 
this._x = this.targetX; this._y = this.targetY; } }; 

menu_mc[i].onEnterFrame = function() { this.targetX = x_placement; this.targetY = y_placement; this.onEnterFrame = this.dropDown; };