# This.onEnterFrame or that.on? help

**URL:** https://forum.kirupa.com/t/this-onenterframe-or-that-on-help/126706
**Category:** Uncategorized
**Created:** [October 26, 2004, 5:07pm UTC](https://forum.kirupa.com/t/this-onenterframe-or-that-on-help/126706 "2004-10-26T17:07:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kdzines](https://avatars.discourse-cdn.com/v4/letter/k/7ea924/32.png) [@kdzines](https://forum.kirupa.com/u/kdzines)
#### Post date: [October 26, 2004, 5:07pm UTC](https://forum.kirupa.com/t/this-onenterframe-or-that-on-help/126706/1 "2004-10-26T17:07:59Z")

</div>

hey, recurring problem.

i have a few functions on their own frame on the stage. sometimes i want to functions to work at the same time.how?

```auto

function revealImg() {
	//set button size as above
	buttSize = 20;
	initY = stage._width;
	holderMc._visible = 1;
	holderMc._alpha = 0;
	//
	initR = buttRight._x;
	initL = buttLeft._x;
	t = 0;
	duration = 50;
	buttLeft._visible = 1;
	buttRight._visible = 1;
	pinkE._visible = 0;
	this.onEnterFrame = function() {
		if (t<duration) {
			buttRight._x = Math.EaseOutExpo(t, initR, buttSize, duration);
			buttLeft._x = Math.EaseOutExpo(t, initL, -buttSize, duration);
			holderMc._alpha = Math.EaseOutExpo(t, 0, 100, duration);
			t++;
		}
	};
}
function showPinkE() {
	t = 0;
	duration = 30;
	this.onEnterFrame = function() {
		if (t<duration) {
			t++;
		}
		if (t>=duration) {
			pinkE._visible = 1;
			delete this.onEnterFrame;
		}
	};
}

```

my problem is that i use this.onEnterFrame(). i understand that only 1 function can use this at a time, but how can i use something else .onEnterframe without encountering the wierd problems?

i tried \_root, things went odd.  
tried anotherMc.onEnterFrame but probs as well.

please let me know how to deal with this.

kd
