# Rotating buttons

**URL:** https://forum.kirupa.com/t/rotating-buttons/23857
**Category:** flash
**Created:** [June 23, 2003, 1:07pm UTC](https://forum.kirupa.com/t/rotating-buttons/23857 "2003-06-23T13:07:08Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![sonnyz](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@sonnyz](https://forum.kirupa.com/u/sonnyz)
#### Post date: [June 23, 2003, 1:07pm UTC](https://forum.kirupa.com/t/rotating-buttons/23857/1 "2003-06-23T13:07:08Z")

</div>

Hi guys  
Refer to the attached file  
I was wondering why my buttons dont work. I managed to make the movieclip stop, but the buttons dont seem to work, any help would be appreciated.:hangover:

I tried searching the forums but none of it seemed to answer this question  
thanks all:)

---

<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: [June 23, 2003, 5:29pm UTC](https://forum.kirupa.com/t/rotating-buttons/23857/2 "2003-06-23T17:29:16Z")

</div>

ok… here is what u are going to do. put an instance name of each of your buttons “but1”, “but2”, “but3”, “but4”, “but5”, “but6”. Then, insert a new layer and place this code:

```auto

this.onEnterFrame = function() {
	for (x=1; x<=6; x++) {
		this["but"+x].onRollOver = function() {
			_parent.stop();
		};
		this["but"+x].onRollOut = function() {
			_parent.play();
		};
	}
};

```

That’s it! It should work.

Hope it helps! 🙂

---

<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: [June 24, 2003, 5:50am UTC](https://forum.kirupa.com/t/rotating-buttons/23857/3 "2003-06-24T05:50:54Z")

</div>

OMG! Thanks so much rvanet your a legend (thumbsup) 🙂

---

<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: [June 24, 2003, 5:59am UTC](https://forum.kirupa.com/t/rotating-buttons/23857/4 "2003-06-24T05:59:45Z")

</div>

No problem! :thumb:
