# Mx infinite menu

**URL:** https://forum.kirupa.com/t/mx-infinite-menu/9468
**Category:** Uncategorized
**Created:** [December 12, 2002, 12:13pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468 "2002-12-12T12:13:11Z")
**Posts on this page:** 5
**Page:** 2

<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: [December 23, 2002, 6:46am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/21 "2002-12-23T06:46:52Z")

</div>

someone must know…?! plz anyone…!? :nerd:

---

<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: [December 23, 2002, 4:45pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/22 "2002-12-23T16:45:19Z")

</div>

The buttons are bamboozled by the code I gave you :beam:  
When you do scroller.onRollOver, Flash won’t take into consideration button handlers that are inside that button. So you need to change the code to

```auto
midScreen = Stage.width/2;
scroller.onEnterFrame=function(){
	if (_xmouse>midScreen) {
		this.speed = -5;
	} else {
		this.speed = +5;
	}
	this._x+=this.speed;
	if (this._x>0) {
		this._x = -300;
	}
	if (this._x<-300) {
		this._x = 0;
	}
};

```

and remove the code from the scroller too.

pom 🙂

---

<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: [December 24, 2002, 3:09am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/23 "2002-12-24T03:09:15Z")

</div>

alrite i dont’ think its that problem anymore because i just fixed it and the links aren’t working ☹  
so this is the code i put on each button:

on (release) {  
gotoAndPlay (“scene 2”,1);  
}

but its not worrrkiing!!! thats the code i usually use but i think its wrong i’m guessing…any ideas…?! thx for all this help btw \<:}

---

<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: [December 24, 2002, 4:13am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/24 "2002-12-24T04:13:00Z")

</div>

It works fine, you just aren’t doing it right.

Give the frame in your Scene 2 a label. I will use “startScene2” (no quotes) as my label for frame 1 in Scene 2.

Ok, now on your button, the code will look like…

```auto
on (release) {
	_root.gotoAndPlay("startScene2");
}

```

You can’t change scenes from inside a movieclip using the gotoAndPlay(“Scene”, frame#) for some reason, but if you give the frame you want to go to a label, you can always use \_root.gotoAndPlay(label). Which is what electrongeek said earlier.

---

<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: [December 24, 2002, 10:27am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/25 "2002-12-24T10:27:34Z")

</div>

ah i got it thx A LOT!!!  
and merry christmas \<:}

[Previous page](https://forum.kirupa.com/t/mx-infinite-menu/9468.md?page=1)
