# TweenMax not looping

**URL:** <https://forum.kirupa.com/t/tweenmax-not-looping/280181>\
**Category:** flash\
**Created:** [January 23, 2009, 7:35pm UTC](https://forum.kirupa.com/t/tweenmax-not-looping/280181 "2009-01-23T19:35:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane\_c](https://avatars.discourse-cdn.com/v4/letter/s/3be4f8/32.png) [@shane\_c](https://forum.kirupa.com/u/shane_c)\
**Post date:** [January 23, 2009, 7:35pm UTC](https://forum.kirupa.com/t/tweenmax-not-looping/280181/1 "2009-01-23T19:35:30Z")

</div>

I have (what should be) a really simple little piece of code inside a moviclip, trying to get it to fade in and out in a loop. Here’s the code (within the movieclip):

```auto
import gs.TweenMax;
this._alpha = 100;
alphaDown = function() {
    trace("alpha down");
    TweenMax.to(this, 0.5, {_alpha:50, onComplete:alphaUp});
};
alphaUp = function() {
    trace("alpha up");
    TweenMax.to(this, 0.5, {_alpha:100, onComplete:alphaDown});
};
alphaDown();

```

The movieclip fades down to 50 alpha, but won’t fade back up. In the output, I see a correct alternation between “alpha down” and “alpha up” every 0.5 seconds, but the clip itself isn’t actually changing its alpha. Any ideas what I’m doing wrong?
