# Duplicate buttons(mc) and change names

**URL:** <https://forum.kirupa.com/t/duplicate-buttons-mc-and-change-names/44055>\
**Category:** Uncategorized\
**Created:** [February 28, 2004, 5:55pm UTC](https://forum.kirupa.com/t/duplicate-buttons-mc-and-change-names/44055 "2004-02-28T17:55:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jazzman121](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jazzman121/32/127_2.png) [@jazzman121](https://forum.kirupa.com/u/jazzman121)\
**Post date:** [February 28, 2004, 5:55pm UTC](https://forum.kirupa.com/t/duplicate-buttons-mc-and-change-names/44055/1 "2004-02-28T17:55:48Z")

</div>

hey! ok im trying to write a script i have a php file that send two variables one with names of image files and the other with the total number of images in a folder…

in flash im trying to make a button for each image… how do i do that… i kinda figured out the duplicate movieclip part…

but how do i rename each button so that it will be like

buttton1 for first image  
button 2 for second image

how do i add a variable to the end of the name of the button?

and secondly the names of the images and the widht and hight of the images are all in a array matrix…

im using while(i\<= imgfilearry\_num)

how do segregate the data from the array

I hope my question makes sense i know its kinda complicated but ive been trying for 2 days now and i cant seem to figure it out ☹
