# Fade movie clip with script

**URL:** <https://forum.kirupa.com/t/fade-movie-clip-with-script/247221>\
**Category:** Uncategorized\
**Created:** [December 19, 2007, 7:02pm UTC](https://forum.kirupa.com/t/fade-movie-clip-with-script/247221 "2007-12-19T19:02:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![acc](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@acc](https://forum.kirupa.com/u/acc)\
**Post date:** [December 19, 2007, 7:02pm UTC](https://forum.kirupa.com/t/fade-movie-clip-with-script/247221/1 "2007-12-19T19:02:57Z")

</div>

I’ve searched and found similar posts, but having not used flash for years, I am back to learning from ground up.

I found this script and works well

```auto

import fl.transitions.Tween;
import fl.transitions.easing.*;

var myTween:Tween = new Tween(banana_mc, "x", Elastic.easeOut, 50, 450, 3, true);

```

and does exactly what the example shows… now I want to fade it in… but this code below, that I’ve found on flash help, won’t work, just want to know what I’m missing

```auto

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

new Tween(banana_mc, "_alpha", Strong.easeIn., 100, 0, 3, true);

```

using flash 8 and I don’t use both codes at the same time, basically I just use it for trial and error testing.

thanks for any clarification on what is wrong/missing in the code
