# Tweenclass animation..please help

**URL:** <https://forum.kirupa.com/t/tweenclass-animation-please-help/215683>\
**Category:** Uncategorized\
**Created:** [February 9, 2007, 11:49am UTC](https://forum.kirupa.com/t/tweenclass-animation-please-help/215683 "2007-02-09T11:49:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lister110](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/lister110/32/3186_2.png) [@lister110](https://forum.kirupa.com/u/lister110)\
**Post date:** [February 9, 2007, 11:49am UTC](https://forum.kirupa.com/t/tweenclass-animation-please-help/215683/1 "2007-02-09T11:49:03Z")

</div>

I have a basic alpha tween applied to a clip. The clip fades in and then fades out. But I would like duplicates of this clip on the stage all to fade in and fade out at various times, so I placed these clips along the main timeline to be executed when the playhead reaches them. The problem is I cant seem to get them to work? The first fades in and out but thats it…I cant figure how to get the others to work?

I thought I could put the code around an onEnterFrame function but it doesnt seem to work? when called, not sure if im on the right path or not

I am really new to actionscript, so any help would be really appreciated…sorry if this is a really simple question…

code:

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

var mcTween:Tween = new Tween(jester\_mc, “\_alpha”, Regular.easeInOut, 0, 100, 3, true);  
mcTween.onMotionFinished = function(){  
new Tween(jester\_mc, “\_alpha”, Regular.easeInOut, 100, 0, 3, true);  
}

thanks…

lister
