# Multi Movie Clip Animation

**URL:** https://forum.kirupa.com/t/multi-movie-clip-animation/227319
**Category:** flash
**Created:** [May 29, 2007, 11:53am UTC](https://forum.kirupa.com/t/multi-movie-clip-animation/227319 "2007-05-29T11:53:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![p0p](https://avatars.discourse-cdn.com/v4/letter/p/87869e/32.png) [@p0p](https://forum.kirupa.com/u/p0p)
#### Post date: [May 29, 2007, 11:53am UTC](https://forum.kirupa.com/t/multi-movie-clip-animation/227319/1 "2007-05-29T11:53:49Z")

</div>

I wanted to do multi animation of Movie Clip … created with loop & attachMovie method…  
The new created mc\_n appear from “left to right” or “right to left” or “top to bottom” with actionscript one by one.

The Action script I use to creat multi movie clip with Attach method are following.

[COLOR=Blue]for[/COLOR] (i=0; i\<5; i++) {  
[COLOR=Blue]attachMovie[/COLOR]([COLOR=DarkGreen]“mc”[/COLOR], [COLOR=DarkGreen]“mc\_n”[/COLOR]+i, i);  
[COLOR=Blue]set[/COLOR]([COLOR=DarkGreen]“mc\_n”[/COLOR]+i+[COLOR=DarkGreen]".\_y"[/COLOR], i\*26-26);  
}

Or Movie Clip name placed in array do the same animation one by one.

e.g:  
[COLOR=Blue]var[/COLOR] myArray:[COLOR=Blue]Array[/COLOR] = [COLOR=Blue]Array[/COLOR]([COLOR=Green]“mc1”, “mc2”, “mc3”[/COLOR]);

If anyone know about it. I’ll be thankful to him/her.
