# How do you.....?

**URL:** https://forum.kirupa.com/t/how-do-you/239703
**Category:** flash
**Created:** [September 25, 2007, 4:03am UTC](https://forum.kirupa.com/t/how-do-you/239703 "2007-09-25T04:03:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kchill](https://avatars.discourse-cdn.com/v4/letter/k/3ec8ea/32.png) [@kchill](https://forum.kirupa.com/u/kchill)
#### Post date: [September 25, 2007, 4:03am UTC](https://forum.kirupa.com/t/how-do-you/239703/1 "2007-09-25T04:03:42Z")

</div>

I have a movie clip that I want to have fade in on the stage, stay for a while and then fade out. Here is the code that I have so far:

import mx.transitions.Tween;  
import mx.transitions.easing.\*;  
var logoTween:Tween = new Tween(myLogo\_mc, “\_alpha”, Regular.easeIn, 0, 100, 36, false);  
logoTween.onMotionFinished = function() {  
if (!this.runOnce) {  
this.runOnce = true;  
this.yoyo();  
} else {  
delete this.onMotionFinished;  
}  
};

How can I achieve this?
