# Yoyo() to repeat a tween doesn't seem to work

**URL:** https://forum.kirupa.com/t/yoyo-to-repeat-a-tween-doesnt-seem-to-work/203001
**Category:** Uncategorized
**Created:** [October 6, 2006, 1:42pm UTC](https://forum.kirupa.com/t/yoyo-to-repeat-a-tween-doesnt-seem-to-work/203001 "2006-10-06T13:42:11Z")
**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 6, 2006, 1:42pm UTC](https://forum.kirupa.com/t/yoyo-to-repeat-a-tween-doesnt-seem-to-work/203001/1 "2006-10-06T13:42:11Z")

</div>

Why the difference in tween and why doesn’t  
circle\_mc.onEnterFrame = pulse;  
work?

vs

circle\_mc.onEnterFrame = pulse();

```auto

import mx.transitions.Tween;
import mx.transitions.easing.*;

//circle_mc.onEnterFrame = pulse(); //uncomment comment to test
circle_mc.onEnterFrame = pulse;//uncomment comment to test
function pulse() {
	var yTween:Tween;
	var xTween:Tween;
	yTween = new Tween(this, "_yscale", Regular.easeOut, this._yscale, 200, 5);
	//xTween = new Tween(this, "_xscale", Strong.easeOut, this._xscale, 200, 5);
	yTween.onMotionFinished = function() {
    this.yoyo();
	}
}

```

with circle\_mc.onRollOver = pulse; it does work  
Anyone??
