# 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:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![blah\_de\_blah](https://avatars.discourse-cdn.com/v4/letter/b/a8b319/32.png) [@blah\_de\_blah](https://forum.kirupa.com/u/blah_de_blah)
#### Post date: [December 12, 2002, 12:13pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/1 "2002-12-12T12:13:11Z")

</div>

ive made the inifnite menu, and i wanetd to change it a little…  
i was wondering if you could make it continuosly move to the left even if your mouse wasn’t on it, but it still having the change in direction once your mouse rolls over it…get it? anywayz thx for your help

---

<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 13, 2002, 10:01am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/2 "2002-12-13T10:01:42Z")

</div>

have a direction string

ie direction=""  
when mouseover left side set direction=“left”  
when mouseover right side set direction=“right”

then do an

```php

onClipEvent(enterFrame)
{
     if(direction=="left")
     {
        object._x-=10;  
     }
     else if(direction=="right")
     {
        object._x+=10;
     }
}

```

---

<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 13, 2002, 2:02pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/3 "2002-12-13T14:02:41Z")

</div>

i’m not too sure how to do that :-\

direction = left, right  
left = \_xmouse\<225  
right = \_xmouse\>225

is it something like that? i’m not too great at this so if its wrong plz ignore it and tell me how it could be done…thx

---

<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 13, 2002, 3:08pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/4 "2002-12-13T15:08:04Z")

</div>

I don’t understand what you’re trying to do :-\ Do you have an example?

---

<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 14, 2002, 12:43am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/5 "2002-12-14T00:43:28Z")

</div>

i have an fla attatched here i think if it works properly…and right now its just moving at a constant speed towards the right…

but i’m trying to make it move to the left when your mouse goes to the left…and to the right when your mouse goes to the right, just like on the infinite menu

it doesn’t have to have a varied speed…just a constant speed is good…and i also want it to only move when your mouse goes on the scrollbar…i’m not sure if that would be hard…but i’m just trying to get the direction thing correct at the moment…so do you know how it would be done?

---

<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 15, 2002, 8:04am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/6 "2002-12-15T08:04:49Z")

</div>

i hope you guys understood it :-\ someone must know howta do this!!

---

<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 15, 2002, 8:35am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/7 "2002-12-15T08:35:53Z")

</div>

Sorry, I don’t know anything.

I have yet to even do the tutorial :-\

---

<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 15, 2002, 8:39am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/8 "2002-12-15T08:39:20Z")

</div>

darn! if you don’t know…who will!  
ah well hope someone drops by this post =)

---

<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 16, 2002, 3:18pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/9 "2002-12-16T15:18:13Z")

</div>

I think that this does what you wanted. And there was a problem in the code, too.

pom :goatee:

---

<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 17, 2002, 8:09am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/10 "2002-12-17T08:09:37Z")

</div>

sweet! thx very much i was about to get pretty desperate heh…  
thx again 🙂

---

<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 18, 2002, 8:43am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/11 "2002-12-18T08:43:03Z")

</div>

alrite i just found out another problem and i dont’ know howta fix it!  
since i got those two buttons where you rollover, it covers the pictures in the scrollbar below.  
You can see them, but you can’t click on 'em to link them to something else…

so i was wondering how this could be fixed…!? could you mask more than one thing…? or will that not work either?

i was thinking i would have to do this all in coding instead…would you happen to know how to do this…? how about if we created a box in AS and made it so when you rolled over that invisble box it would still move but wouldn’t affect the things under…  
get it…?! anywayz i’m not sure if that’ll work thx for reading \<:}

---

<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 18, 2002, 1:18pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/12 "2002-12-18T13:18:54Z")

</div>

OK, here it is, scripted.

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 18, 2002, 1:27pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/13 "2002-12-18T13:27:43Z")

</div>

yipeeee thx very much you saved me lotsa time and misery 🙂 :rambo: 🙂 :nerd: :asian: :bandit: \<:}

---

<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 20, 2002, 11:26am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/14 "2002-12-20T11:26:49Z")

</div>

ok this is beginning to really annoy me cause after i figure out something another problem keeps comming!!

so the this is…i used your code and everything and changed it a bit to make it fit what i wanted…and then the problem is…that i can’t click on the buttons to make em change scenes!!  
i added a code to them to change to ‘scene 2’ for example and it doesn’t work!!  
whats wrong!!! :bad:

---

<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 20, 2002, 11:37am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/15 "2002-12-20T11:37:36Z")

</div>

have the buttons target frame labels on the scene you want it to go to.

---

<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 20, 2002, 11:41am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/16 "2002-12-20T11:41:25Z")

</div>

well this is the code i got on each button right now…

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

sorry i’m not too sure what you mean by target frame labels…or is the way i did alrite…? just to make sure, doesn’t the ‘1’ already target a frame?

---

<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 20, 2002, 11:43am UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/17 "2002-12-20T11:43:51Z")

</div>

On scene 2 give one of your frames a name like “blah” and on your button apply this action:

```php
on (release) {
      _root.gotoAndPlay("blah");
}

```

---

<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 20, 2002, 12:18pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/18 "2002-12-20T12:18:27Z")

</div>

are you sure taht is correct? it still doesn’t seem to link…i dunno why!! heeelp me!

---

<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 20, 2002, 12:22pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/19 "2002-12-20T12:22:26Z")

</div>

Did you give the frame a name in scene 2? Let me look at your fla so I can see what you did.

---

<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 20, 2002, 12:25pm UTC](https://forum.kirupa.com/t/mx-infinite-menu/9468/20 "2002-12-20T12:25:59Z")

</div>

good idea…🙂

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