# Repeated movie - different variables

**URL:** <https://forum.kirupa.com/t/repeated-movie-different-variables/148130>\
**Category:** Uncategorized\
**Created:** [May 17, 2005, 9:55am UTC](https://forum.kirupa.com/t/repeated-movie-different-variables/148130 "2005-05-17T09:55:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimjiminyjimjim](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@jimjiminyjimjim](https://forum.kirupa.com/u/jimjiminyjimjim)\
**Post date:** [May 17, 2005, 9:55am UTC](https://forum.kirupa.com/t/repeated-movie-different-variables/148130/1 "2005-05-17T09:55:15Z")

</div>

I have a PHP script returning a list of variables to flash. The variables are named something like this:-

photo1  
photo2  
photo3  
price1  
price2  
price3  
modelnum1  
modelnum2  
modelnum3

there is also a variable n returned to flash which is the maximum number of movieclips required i.e

if n = 7 then there needs to be 7 movieclips and in the seventh movie clip there variables would be something like

photo7  
price7  
modelnum7

What I want to do is replicate the same movie clip with the necessary graphics and layout etc but show a the different variables in each so it would look something like this:

(movieclip 1)  
price1  
photo1  
modelnum1

(movieclip 2)  
price2  
photo2  
modelnum2

upto

(movieclip n)  
price (n)  
photo (n)  
modelnum (n)

How can I create n number of identical movieclips with say three dynamic text boxes in each to show the three variables price, photo and modelnum but will vary with the value of n for each one.

Thanks for you help
