# How to get Tweening ID?

**URL:** <https://forum.kirupa.com/t/how-to-get-tweening-id/308697>\
**Category:** Uncategorized\
**Created:** [April 28, 2010, 11:56am UTC](https://forum.kirupa.com/t/how-to-get-tweening-id/308697 "2010-04-28T11:56:44Z")\
**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:** [April 28, 2010, 11:56am UTC](https://forum.kirupa.com/t/how-to-get-tweening-id/308697/1 "2010-04-28T11:56:44Z")

</div>

Hi Friends,

I m a learner of AS3. I just to konw how to identify the tweening name, if running more tweens on the screen,

For example… creating few circle and animating randomly on the screen. I want to remove the circle when the tweening class finished…

here my codes…

* * *

var MC:MovieClip;

for (var i:int=1; i\<=10; i++) {  
MC=new mcircle();  
MC.id=i;  
MC.x=-1+Math.random()\*800;  
MC.y=-1+Math.random()\*800;  
MC.alpha=(Math.random()\*100)/100;  
var tempScale:Number=(Math.random()\*5);  
MC.scaleX=tempScale;  
MC.scaleY=tempScale;  
addChild(MC);  
var tweenMCx=new Tween(MC, “x”, Strong.easeOut, MC.x,(-1+Math.random()\*800), (Math.random()\*2), true);  
var tweenMCy=new Tween(MC, “y”, Strong.easeOut, MC.y,(-1+Math.random()\*800), (Math.random()\*4), true);  
tweenMCy.addEventListener(TweenEvent.MOTION\_FINISH , removeCircle);

## } function removeCircle(tweenEvent:TweenEvent):void { “here i need to remove the circles” }

how can i remove circles when the “removeCircle” function called ?

Pls correct me if i m wrong on codes…
