# Fmx - newbie question about proto

**URL:** <https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523>\
**Category:** Uncategorized\
**Created:** [November 3, 2003, 5:01pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523 "2003-11-03T17:01:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aquaman](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@aquaman](https://forum.kirupa.com/u/aquaman)\
**Post date:** [November 3, 2003, 5:01pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/1 "2003-11-03T17:01:29Z")

</div>

Hi I found this the equation in the attach file, I have questions about it, I understand what is x,y,d,and calBackFunc, but what about callBackObj and param.

Please can someone help me

thanks

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 5:31pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/2 "2003-11-03T17:31:55Z")

</div>

```auto

MovieClip.prototype.easeInOutBackTo = function(x, y, d, callBackObj, callBackFunc, param) {
	if (this.easeControl) {
		var control_mc = this.easeInOutBackControl;
	} else {
		var control_mc = this.createEmptyMovieClip("easeInOutBackControl", 1000000);
	}
	control_mc.t = 0;
	control_mc.x0 = this._x;
	control_mc.dx = x-control_mc.x0;
	control_mc.y0 = this._y;
	control_mc.dy = y-control_mc.y0;
	control_mc.d = d;
	control_mc.callBackObj = callBackObj;
	control_mc.callBackFunc = callBackFunc;
	control_mc.param = param;
	control_mc.onEnterFrame = function() {
		if (this.t<=this.d) {
			this._parent._x = Math.floor(Math.easeInOutBack(this.t, this.x0, this.dx, this.d, this.s));
			this._parent._y = Math.floor(Math.easeInOutBack(this.t, this.y0, this.dy, this.d, this.s));
			this.t++;
		} else {
			this.callBackObj[this.callBackFunc](this.param);
			this.removeMovieClip();
		}
	};
};

```

are you talking about this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 5:37pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/3 "2003-11-03T17:37:26Z")

</div>

I know This, I have seen a site where it all got exsplaned, but i can’t remember how I did it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 6:05pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/4 "2003-11-03T18:05:02Z")

</div>

yes i´m talking about this, can you explain this to me please, the callBackObject and param

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 6:30pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/5 "2003-11-03T18:30:18Z")

</div>

[http://www.robertpenner.com/easing/](http://www.robertpenner.com/easing/)  
this is the site I saw it first.

Hmmm but it seems that the stuff i had programmed looks nothin like this. I’ll have to look into it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [November 3, 2003, 6:37pm UTC](https://forum.kirupa.com/t/fmx-newbie-question-about-proto/34523/6 "2003-11-03T18:37:13Z")

</div>

You sould check arounds here:  
[http://proto.layer51.com/default.aspx](http://proto.layer51.com/default.aspx)
