# \[FMX2004\] prototype only moves one clip

**URL:** <https://forum.kirupa.com/t/fmx2004-prototype-only-moves-one-clip/180785>\
**Category:** Uncategorized\
**Created:** [March 3, 2006, 12:59pm UTC](https://forum.kirupa.com/t/fmx2004-prototype-only-moves-one-clip/180785 "2006-03-03T12:59:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MZA](https://avatars.discourse-cdn.com/v4/letter/m/f6c823/32.png) [@MZA](https://forum.kirupa.com/u/MZA)\
**Post date:** [March 3, 2006, 12:59pm UTC](https://forum.kirupa.com/t/fmx2004-prototype-only-moves-one-clip/180785/1 "2006-03-03T12:59:40Z")

</div>

I belive this is a simple question for people who knows about prototypes.

Ok so i have this prototype where i send this mc to certain x position. But when i try to send TWO mcs at the same time it only sends the last one. Why is that? What to do for it to work on two mcs at the same time?

here is the prototype:

```auto
MovieClip.prototype.moveOut= function ( mc, endX ){
	speed = 5;
	this.onEnterFrame = function(){		
		mc._x += (endX - mc._x)/speed;
		if ( mc._x >= endX-5 ) {
			delete this.onEnterFrame;
		}
	};
};

```

Here is how i call it:

```auto
on(rollOver){
	_root.moveOut(m2, 300);
	_root.moveOut(m3, 300);
}

```
