# Tween fading issues

**URL:** https://forum.kirupa.com/t/tween-fading-issues/237282
**Category:** flash
**Created:** [August 28, 2007, 10:20pm UTC](https://forum.kirupa.com/t/tween-fading-issues/237282 "2007-08-28T22:20:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![tomto](https://avatars.discourse-cdn.com/v4/letter/t/a183cd/32.png) [@tomto](https://forum.kirupa.com/u/tomto)
#### Post date: [August 28, 2007, 10:20pm UTC](https://forum.kirupa.com/t/tween-fading-issues/237282/1 "2007-08-28T22:20:03Z")

</div>

```auto
import mx.transitions.Tween;
import mx.transitions.easing.*;
import flash.display.*;

function nxtFrame ()
{
    var txtTween = new Tween(infoMC, "_alpha", tweenStyle, 100, 0, 10);
    txtTween.onMotionFinished = function (){
        
        infoMC.infoMask.gotoAndStop (1);
        infoMC.nextFrame ();
        new Tween(infoMC, "_alpha", tweenStyle, 0, 100, 10);
        infoMC.infoMask.play ();
    }
}

```

Hiya

Basically I have a movie clip that when I click ‘next’, it fades out the current text, moves on a frame in infoMC and then fades back up.

When I trace, everything is working ok, up until the fadeup/mask play, and i’ve absolutely no idea why this is? Is there anything wrong with the above code?
