# Targeting duplicates II

**URL:** <https://forum.kirupa.com/t/targeting-duplicates-ii/115622>\
**Category:** Uncategorized\
**Created:** [July 10, 2004, 2:30am UTC](https://forum.kirupa.com/t/targeting-duplicates-ii/115622 "2004-07-10T02:30:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![guitarzen](https://avatars.discourse-cdn.com/v4/letter/g/5f9b8f/32.png) [@guitarzen](https://forum.kirupa.com/u/guitarzen)\
**Post date:** [July 10, 2004, 2:30am UTC](https://forum.kirupa.com/t/targeting-duplicates-ii/115622/1 "2004-07-10T02:30:12Z")

</div>

I attached a movie that I am working on. I use the duplicate actionscript to put several buttons on the stage when clicked. I then want to be able to use the color picker to change the background behind the buttons. As of right now it only works on 1 button and by changing the 6 in this code

for (i=1; i\<6; i++)

to 5, 4, 3, 2 or 1 it will only change that button. How can I get them all to change at once?
