# Problems with duplicating movie clips

**URL:** https://forum.kirupa.com/t/problems-with-duplicating-movie-clips/230670
**Category:** flash
**Created:** [June 28, 2007, 3:45am UTC](https://forum.kirupa.com/t/problems-with-duplicating-movie-clips/230670 "2007-06-28T03:45:01Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![breakaway](https://avatars.discourse-cdn.com/v4/letter/b/ac91a4/32.png) [@breakaway](https://forum.kirupa.com/u/breakaway)
#### Post date: [June 28, 2007, 3:45am UTC](https://forum.kirupa.com/t/problems-with-duplicating-movie-clips/230670/1 "2007-06-28T03:45:01Z")

</div>

So here is the problem. I am making a simple address lookup in flash. I have an asp page that pulls all my data and loads the vars into flash using an array. I use flash to pull apart the array and populate the movie clips that i generate. I can get it to work with one array, but when I add multiple duplicatemovieclip(); items to my loop statement the others disappear. To be more specific any of the items before the one I add disappear. If I comment out the line the one before it shows.

Here is my output from my asp page.

&name\_output=West Coast Sport Consignor Cor ,SportChek Kitsalano,SportChek Pacific Centre,SportChek Broadway,SportChek Pacific Centre,PIAS - Vancouver (WA) ,&city\_output=Vancouver ,Vancouver,Vancouver,Vancouver,Vancouver,Vancouver ,&phone\_output=(604) 732-4810 ,(604) 731-6181,(604) 687-7668,(604) 874-6530,(604) 687-7668,(360) 260-9440 ,&address\_output=1655 W. 4th Ave. ,2201 West 4th Avenue,777 Dunsmir Street,18 West Broadway ,777 Dunsmuir Street,8101 NE Parkway Drive ,&postal\_output=V6J 1L8 ,V6K 1N9,V7Y 1A1 ,V5Y 1P2,V7Y 1A1 ,98662 ,&counter=1

Here is my flash code.

// split up the array by looking for the commas  
name\_array = name\_output.split(",");  
city\_array = city\_output.split(",");  
phone\_array = phone\_output.split(",");  
address\_array = address\_output.split(",");  
dealerpostal\_array = postal\_output.split(",");

// get the length of the array  
array\_length = name\_array.length;

// looping everything  
for (i=0; i\<array\_length; i++) {  
//Name  
dealername.duplicateMovieClip(“dealername”+i,i);  
setProperty(“dealername”+i, \_y, i_70);  
set([“dealername”+i+".info"], name\_array_);  
//City  
dealercity.duplicateMovieClip(“dealercity”+i,i);  
setProperty(“dealercity”+i, \_y, i_70);  
set([“dealercity”+i+".info"], city\_array_);  
//Phone  
dealerphone.duplicateMovieClip(“dealerphone”+i,i);  
setProperty(“dealerphone”+i, \_y, i_70);  
set([“dealerphone”+i+".info"], phone\_array_);

}

This is driving me nuts, I bet it is something really simple. Thanks for any help you can.

Jody
