# Making duplicated movieclips into buttons

**URL:** <https://forum.kirupa.com/t/making-duplicated-movieclips-into-buttons/164261>\
**Category:** flash\
**Created:** [September 29, 2005, 4:51pm UTC](https://forum.kirupa.com/t/making-duplicated-movieclips-into-buttons/164261 "2005-09-29T16:51:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ben\_is\_sparky](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ben_is_sparky/32/664_2.png) [@ben\_is\_sparky](https://forum.kirupa.com/u/ben_is_sparky)\
**Post date:** [September 29, 2005, 4:51pm UTC](https://forum.kirupa.com/t/making-duplicated-movieclips-into-buttons/164261/1 "2005-09-29T16:51:25Z")

</div>

How can I get my movieclip which has been duplicated to act as a button? Neither of these seem to work:

```auto
"thumbContainer"+nextPicture.onMouseDown = function(){
	trace("Clicked")
}

```

```auto
currentButton = "thumbContainer"+nextPicture
currentButton.onMouseDown = function(){
	trace("Clicked")
}

```

It doesn’t work with onRollOver either. Is the first way an ok way to reference it? As in, will having the instancename made up of two parts make a difference? Also, I don’t know if any of the following make a difference, I don’t know:  
[list]  
[_]It’s got a jpg loaded into it already  
[_]It’s part of a for loop that duplicates a load of them, they all need the same code.  
[\*]I forgot the other thing I thought of.  
[/list] I@m sure this is something really stupid, but I can’t figure it out right now.
