# How to use setinterval with function.apply()?

**URL:** <https://forum.kirupa.com/t/how-to-use-setinterval-with-function-apply/203088>\
**Category:** Uncategorized\
**Created:** [October 7, 2006, 11:39am UTC](https://forum.kirupa.com/t/how-to-use-setinterval-with-function-apply/203088 "2006-10-07T11:39:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keitai](https://avatars.discourse-cdn.com/v4/letter/k/73ab20/32.png) [@keitai](https://forum.kirupa.com/u/keitai)\
**Post date:** [October 7, 2006, 11:39am UTC](https://forum.kirupa.com/t/how-to-use-setinterval-with-function-apply/203088/1 "2006-10-07T11:39:49Z")

</div>

Hi there,

I am using the following code

```auto

motionMC.apply(text_mc,[100,1]);

function motionMC(endX,time) {
	var mcTween:Tween = new Tween(this, "_x", Strong.easeOut, this._x, endX, time, true);
};

```

But I want to control the start time as well with setinterval

I tried

```auto

anime1 = setInterval(text_mc, "motionMC", 1000,[100, 1]);

```
