# Add instances of the same library item on stage with tweening

**URL:** <https://forum.kirupa.com/t/add-instances-of-the-same-library-item-on-stage-with-tweening/309411>\
**Category:** flash\
**Created:** [May 14, 2010, 9:46am UTC](https://forum.kirupa.com/t/add-instances-of-the-same-library-item-on-stage-with-tweening/309411 "2010-05-14T09:46:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dimitree](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dimitree/32/2530_2.png) [@Dimitree](https://forum.kirupa.com/u/Dimitree)\
**Post date:** [May 14, 2010, 9:46am UTC](https://forum.kirupa.com/t/add-instances-of-the-same-library-item-on-stage-with-tweening/309411/1 "2010-05-14T09:46:48Z")

</div>

I am trying to add instances of the same library item on stage with tweening. Each one will “appear” on stage with delay.  
I have this code so far:

```php
import com.greensock.TweenLite;

var itemsList:Array = new Array();
init();
function init():void{

for (var i:int = 0; i<6 ;i++){	
	var item:Milk = new Milk();
	addChild(item);
	itemsList.push(item);		
	}
for each (var m:Milk in itemsList){
	//TweenLite.to(Milk(m), .5, {x:"100",alpha:0, delay: m / 6}); ---this gives error!!!
       //Milk(m).x=200; ---This works
	
	}	
	trace(itemsList.length);
	
}

```

The following error: 1067: Implicit coercion of a value of type Milk to an unrelated type Number.
