# \[FMX\] Function restore

**URL:** <https://forum.kirupa.com/t/fmx-function-restore/60642>\
**Category:** flash\
**Created:** [August 11, 2004, 9:14am UTC](https://forum.kirupa.com/t/fmx-function-restore/60642 "2004-08-11T09:14:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dboers](https://avatars.discourse-cdn.com/v4/letter/d/bbe5ce/32.png) [@dboers](https://forum.kirupa.com/u/dboers)\
**Post date:** [August 11, 2004, 9:14am UTC](https://forum.kirupa.com/t/fmx-function-restore/60642/1 "2004-08-11T09:14:02Z")

</div>

I have 8 thumbnail mc’s working as buttons (thumb\_01,thumb\_02 …thumb\_08) those thumbnails are in another mc (thumbsMC). I control the thumbs with the following function:

```auto
function setThumbs() {
for (var i in thumbsMc) {
if (thumbsMc*._name.substr(0, 6) == "thumb_") {
clip = thumbsMc*;
clip.onRollOver = function() {
	this.gotoAndStop(2);
};
clip.onRollOut = function() {
	this.gotoAndStop(1);
};
}
}
}
setThumbs();

```

What I would like to accomplish now that if a thumb is pressed, that that one stay at frame 2 and that the other ones are going back to frame one. How should I do this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 11, 2004, 9:33am UTC](https://forum.kirupa.com/t/fmx-function-restore/60642/2 "2004-08-11T09:33:34Z")

</div>

I have solved it already !
