# Problem with prototype

**URL:** <https://forum.kirupa.com/t/problem-with-prototype/48996>\
**Category:** flash\
**Created:** [April 19, 2004, 12:12am UTC](https://forum.kirupa.com/t/problem-with-prototype/48996 "2004-04-19T00:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![El\_Bicho](https://avatars.discourse-cdn.com/v4/letter/e/dbc845/32.png) [@El\_Bicho](https://forum.kirupa.com/u/El_Bicho)\
**Post date:** [April 19, 2004, 12:12am UTC](https://forum.kirupa.com/t/problem-with-prototype/48996/1 "2004-04-19T00:12:38Z")

</div>

I have this code. The clip moves in a slow spiral trajectory until it stops. When I increase the number of clips (var totalClips) the behaviour changes. The movement is faster and they make more “laps” until they stop.  
Any hint?  
Thanks.

```auto

MovieClip.prototype.move = function(x, y, radio) {
	this.radio = radio;
	this.onEnterFrame = function() {
		if (this.radio>=0) {
			this.radio -= 2;
			this._x = x+this.radio*Math.cos(t*Math.PI/180);
			this._y = y+this.radio*Math.sin(t*Math.PI/180);
			t += 10;
		}
	};
	delete this.onEnterFrame();
};
totalClips = 1;
for (i=1; i<totalClips+1; i++) {
	attachMovie("circle", "circle"+i, i);
}
for (a=1; a<totalClips+1; a++) {
	eval("circle"+a).move(150, a*50, 150);
}

```
