# Tween Class question

**URL:** <https://forum.kirupa.com/t/tween-class-question/198763>\
**Category:** flash\
**Created:** [August 28, 2006, 1:21pm UTC](https://forum.kirupa.com/t/tween-class-question/198763 "2006-08-28T13:21:17Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pixelmech](https://avatars.discourse-cdn.com/v4/letter/p/df788c/32.png) [@Pixelmech](https://forum.kirupa.com/u/Pixelmech)\
**Post date:** [August 28, 2006, 1:21pm UTC](https://forum.kirupa.com/t/tween-class-question/198763/1 "2006-08-28T13:21:17Z")

</div>

I’m trying to fade in some text at a certain point in my movie. After reading the tween class tutorial, I grabbed this snipped of code, slightly modified to be:

```auto

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

var fadeIn:Tween = new Tween(myTextMovieClip, "_alpha", Elastic.easeInOut, 0, 100, 2, true);

```

Now, when I run my movie this works just fine. But the thing is, I don’t want it to run until a button is clicked in the movie, and the movie clip will not be visible until that button is clicked. So how would I have this tween fire off when the button is clicked? How do I connect them?

Would it be something like this?

```auto

myButton_btn.onRelease = function() {
   myMovieClip.fadeIn;
}

```

??

Thanks
