# Need to customize the infinite menu

**URL:** <https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612>\
**Category:** Uncategorized\
**Created:** [August 16, 2004, 9:04pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612 "2004-08-16T21:04:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 16, 2004, 9:04pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/1 "2004-08-16T21:04:37Z")

</div>

If anyone has a few minutes to help me out with this it would be greatly appreciated. I am a designer that is new to AS and I am doing my best to learn as much as I can and as fast as I can, but I am having a lot of trouble with this one and could use a little help. I have already tried playing around with the AS in the infinite menu tutorial and I have also searched through all of the previous threads and I was unable to find exactly what I need. Basically I need to create an infinite menu that scrolls in one direction (doesn’t react to the position of the mouse) and also stops when you rollover on one of the buttons, and then starts scrolling again when you mouseout. One other wrinkle, is that the infinite menu that I create may or may not be used in a full flash site. It may be used as navigation on a html site with the individual buttons simply linking to html pages. Because of this, the menu needs to scroll and function correctly even if the mouse is not within the boundaries of the flash movie. As I mentioned before, if anyone has time to help me get this menu right, I would be very appreciative. Thanks!

---

<div class="post-metadata">

**Author:** ![deQue](https://avatars.discourse-cdn.com/v4/letter/d/b19c9b/32.png) [@deQue](https://forum.kirupa.com/u/deQue)\
**Post date:** [August 16, 2004, 11:05pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/2 "2004-08-16T23:05:12Z")

</div>

The menu will function in an HTML page exactly as it would in a Flash one.  
Only difference is the target in witch the pages will open.  
Read the Flash Help files about the “getURL()” function. It should be clear enough for you to understand how to target your pages.

As for customizing the menu… that’s just Flash work. Open the object, and edit it.

---

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [August 17, 2004, 2:32pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/3 "2004-08-17T14:32:27Z")

</div>

Here is what you want i think 🙂

Ubik

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 12:01am UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/4 "2004-08-18T00:01:53Z")

</div>

Thank you Ubik, that is exactly what I was trying to accomplish. When I test the movie it opens and I can view it, and it works exactly as I intended, however I am receive\ing an error message that I am pasting below. Is this something that I can easily fix?

**Error** Scene=Scene 1, layer=mask, frame=1:Line 1: Statement must appear within on/onClipEvent handler  
t  
Total ActionScript Errors: 1 Reported Errors: 1

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 12:07am UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/5 "2004-08-18T00:07:38Z")

</div>

I think I fixed it. For some reason there was the letter “t” applied to the mask object in the actionscript window. I deleted the “t” and I am no longer receiving the error. Thanks again.

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 12:49am UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/6 "2004-08-18T00:49:54Z")

</div>

For some reason when I change the speeds to 1/50 instead of 1/10 I am getting a weird effect. The menu will scroll at the correct speed for 10 seconds or so, and then it goes crazy and flickers and shakes. Am I doing something wrong or missing something? I just wanted to scroll the menu slower and I thought it would be as simple as just changing the speed in the code. Thanks.

---

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [August 18, 2004, 9:16am UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/7 "2004-08-18T09:16:27Z")

</div>

Hello,  
I changed the speed to 1/50, and i don’t see the problem, can you send you fla ?

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 1:25pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/8 "2004-08-18T13:25:16Z")

</div>

Hello Ubik, and thanks for your response. Here is the file. As I said before, if you test the movie and/or preview in html, the menu will scroll correctly for about 7-10 seconds then it starts misbehaving and flickers and shakes. Let me know if this happens for you. Thanks!

Fes

---

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [August 18, 2004, 2:33pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/9 "2004-08-18T14:33:08Z")

</div>

change this line

```auto
if (_x<-300) _x=10

```

to

```auto
if (_x<-300) _x=0

```

and it will work correctly 🙂

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 2:58pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/10 "2004-08-18T14:58:18Z")

</div>

Thank you! It works perfectly. Can you explain why we changed this to 0? If I decide to change the speed back to 1/10 would I have to change this back to 10 as well? What if I decide to change the speed to something like 1/100 would this setting stay at 0 or would I have to change it to something else? Basically I am trying to learn what is happening here so I can fully grasp and understand what is going on. Thanks.

---

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [August 18, 2004, 3:06pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/11 "2004-08-18T15:06:09Z")

</div>

No it will stay 0.

```auto
if (_x<-300) _x=0

```

means if your clip’s position (\_x) goes to - 300 (position on the stage, check the rulers), then move the clip back to 0, so it will loop. Beware, always check the registration point of you clip, this works because the registration point is on the left, if it was on the middle of the clip the “x\<…” value would have changed.  
Cheers,

Ubik

---

<div class="post-metadata">

**Author:** ![Fes4](https://avatars.discourse-cdn.com/v4/letter/f/eb9ed0/32.png) [@Fes4](https://forum.kirupa.com/u/Fes4)\
**Post date:** [August 18, 2004, 3:41pm UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/12 "2004-08-18T15:41:54Z")

</div>

That should do it. Thanks for all of your help with this.

---

<div class="post-metadata">

**Author:** ![Ubik](https://avatars.discourse-cdn.com/v4/letter/u/b38774/32.png) [@Ubik](https://forum.kirupa.com/u/Ubik)\
**Post date:** [August 19, 2004, 7:45am UTC](https://forum.kirupa.com/t/need-to-customize-the-infinite-menu/119612/13 "2004-08-19T07:45:34Z")

</div>

You’re welcome 🙂
