# Problem adding another tween for a MC while running a Tween!

**URL:** <https://forum.kirupa.com/t/problem-adding-another-tween-for-a-mc-while-running-a-tween/308914>\
**Category:** Uncategorized\
**Created:** [May 3, 2010, 9:36am UTC](https://forum.kirupa.com/t/problem-adding-another-tween-for-a-mc-while-running-a-tween/308914 "2010-05-03T09:36:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthic\_vkn](https://avatars.discourse-cdn.com/v4/letter/k/da6949/32.png) [@karthic\_vkn](https://forum.kirupa.com/u/karthic_vkn)\
**Post date:** [May 3, 2010, 9:36am UTC](https://forum.kirupa.com/t/problem-adding-another-tween-for-a-mc-while-running-a-tween/308914/1 "2010-05-03T09:36:05Z")

</div>

Hi All,

Shall i start second tween for a MC, its already a running a tween?

I have two red dots in my stage. Initially i start moving those dots from a position to another position, while tweening start i m calling a function for starting a new tween using “MOTION\_CHANGE” class, In that function i m trying to make a blink effect to those two red dots., Not working…!!!

Pls suggest me, the way i m using is correct? or do i needs to done by another way ?

## Here my codes…

import fl.transitions._;  
import fl.transitions.easing._;

var MC:MovieClip=new MovieClip();  
var tweenX:Array=new Array();  
var blinkTween:Array=new Array();

for (var i:int=1; i\<=2; i++) {  
MC=drawCircle();  
MC.id=i;  
MC.x=100;  
MC.y=100_i;  
addChild(MC);  
tweenX_=new Tween(MC,“x”,Regular.easeIn,MC.x,MC.x+300,5,true);  
tweenX\*.addEventListener(TweenEvent.MOTION\_CHANGE, blinkCircle);  
}

function blinkCircle(evt:TweenEvent):void {  
trace(evt.target.obj.id);  
blinkTween[evt.target.obj.id]=new Tween(evt.target.obj,“alpha”,Regular.easeOut,100,0,.5,true);  
blinkTween[evt.target.obj.id].addEventListener(TweenEvent.MOTION\_FINISH, blinkCircle);  
}

function drawCircle() {  
var circleMC:MovieClip=new MovieClip();  
circleMC.graphics.beginFill(0xFF0000);  
circleMC.graphics.drawCircle(0, 0, 10);  
return (circleMC);  
}
