# Duplicate button just work on 1st button, please HELP

**URL:** <https://forum.kirupa.com/t/duplicate-button-just-work-on-1st-button-please-help/204090>\
**Category:** Uncategorized\
**Created:** [October 17, 2006, 1:38am UTC](https://forum.kirupa.com/t/duplicate-button-just-work-on-1st-button-please-help/204090 "2006-10-17T01:38:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ika\_nursila](https://avatars.discourse-cdn.com/v4/letter/i/d2c977/32.png) [@ika\_nursila](https://forum.kirupa.com/u/ika_nursila)\
**Post date:** [October 17, 2006, 1:38am UTC](https://forum.kirupa.com/t/duplicate-button-just-work-on-1st-button-please-help/204090/1 "2006-10-17T01:38:39Z")

</div>

## Dear All, I’ve the button. i make one button and duplicate it with looping for amount of records from database… this is my code

[COLOR=navy]for (i=0; i\<myrecs;i++) {  
[/COLOR]  
[COLOR=navy]duplicateMovieClip(\_root.main.btn\_more, “btn\_more” add i, depth);  
setProperty("\_root.main.btn\_more" add i, \_y, yposition-70);  
var clip = \_root.main[“btn\_more”+i];  
clip.onRelease = function() {  
loadVariablesNum (“DetailVilla.asp?id=” + i, 0);  
gotoAndPlay (“loadDetail”);  
};  
[/COLOR]  
[COLOR=navy][/COLOR][COLOR=navy]};[/COLOR]

* * *

that code works! but just in 1st button works…(only first button)…i;ve 5 duplicated button, but another button cannot mouseover and click ☹ …  
how to resolve this problem?  
please help…because i’ve heavy deadline and for one week i stack in  
this part…  
thank you…

best  
ika
