# \[FMX/2004\] fadeIn prototype, run by multiple objects at the same time

**URL:** <https://forum.kirupa.com/t/fmx-2004-fadein-prototype-run-by-multiple-objects-at-the-same-time/114038>\
**Category:** Uncategorized\
**Created:** [June 24, 2004, 1:54am UTC](https://forum.kirupa.com/t/fmx-2004-fadein-prototype-run-by-multiple-objects-at-the-same-time/114038 "2004-06-24T01:54:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quik](https://avatars.discourse-cdn.com/v4/letter/q/e19b73/32.png) [@quik](https://forum.kirupa.com/u/quik)\
**Post date:** [June 24, 2004, 1:54am UTC](https://forum.kirupa.com/t/fmx-2004-fadein-prototype-run-by-multiple-objects-at-the-same-time/114038/1 "2004-06-24T01:54:37Z")

</div>

I have the following prototype, which is used by typing objName.fadeIn(100, 3);  
this is all well and good, although when I start to use it on multiple mc’s at once the playback becomes quite choppy and nasty… any ideas dudes?

```auto

MovieClip.prototype.fadeIn = function(v, r) {
	this.onEnterFrame = function() {
		if (this._alpha<v) {
			this._alpha += r;
		} else {
			delete this.onEnterFrame;
		}
	};
};

```
