# Infinite Menu

**URL:** <https://forum.kirupa.com/t/infinite-menu/17936>\
**Category:** Uncategorized\
**Created:** [April 10, 2003, 11:53pm UTC](https://forum.kirupa.com/t/infinite-menu/17936 "2003-04-10T23:53:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lacuna](https://avatars.discourse-cdn.com/v4/letter/l/edb3f5/32.png) [@Lacuna](https://forum.kirupa.com/u/Lacuna)\
**Post date:** [April 10, 2003, 11:53pm UTC](https://forum.kirupa.com/t/infinite-menu/17936/1 "2003-04-10T23:53:07Z")

</div>

H-E-L-P!!

Im using the infinite menu tute from Kirupa and it skips a second when it goes to the second clip…here’s the .fla and .swf PLEASE give it a look and let me know where I’m going wrong…

~ Seretha :love:

See it at:  
[http://www.cyberwebs.org/test/infinite.html](http://www.cyberwebs.org/test/infinite.html)

Download my .fla at:  
[http://www.cyberwebs.org/test/infinite.fla](http://www.cyberwebs.org/test/infinite.fla)

---

<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:** [April 11, 2003, 12:09am UTC](https://forum.kirupa.com/t/infinite-menu/17936/2 "2003-04-11T00:09:27Z")

</div>

seretha -

im working on it, it’s working a bit better now, i think it may be because your registration points on your different movie clips were all over the place and not in the center.

i’ll get back to you in a bit!

_edit_ - never mind, it’s in your AS too… I’m almost 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:** [April 11, 2003, 1:07am UTC](https://forum.kirupa.com/t/infinite-menu/17936/3 "2003-04-11T01:07:32Z")

</div>

sweet. thanks a lot for doing that for me! It’s been giving me a headache all day.

~ Seretha :love:

---

<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:** [April 11, 2003, 1:08am UTC](https://forum.kirupa.com/t/infinite-menu/17936/4 "2003-04-11T01:08:33Z")

</div>

ok, im finally done -

first off, no offense, but you should try to pay a bit more attention to the tutorial, since especially for this one you can’t just d/l it and then replace the movie clips. also, you needed to read on the tutorial where it said to **make sure the movie clip’s registration point was left-center**!!

ok, first things first, the actionscript modifications:

[AS]///////////////////////////  
// start slide functions//  
/////////////////////////  
onClipEvent (load)  
{  
// play with xcenter value to change amount of sensitivity to mouse  
// the higher xcenter is, the less mouse response you will have  
xcenter=600;  
// seems to be the only acceptable value for your clip  
speed= .1/10;  
}  
onClipEvent (enterFrame)  
{  
// again, since the clip you are scrolling is so long, take xcenter and  
// divide it by four to increase mouse response  
var distance=\_root.\_xmouse-xcenter/4;  
\_x+=(distance\*speed);  
}

onClipEvent (enterFrame)  
{  
// 1210 px is half of your clips  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance\*speed);  
if (\_x \> 0) \_x=-1210;  
if (\_x \< -1210) \_x=0;  
}  
/////////////////////////  
// end slide functions//  
///////////////////////[/AS]

You need to edit the xcenter code so that it reflected the value of half of your movie clip. i altered this very slightly so that the mouse reponse in this clip would be improved.

next, i had to change speed because your loooong clip just zoomed by and you couldn’t even see them. since speed has to be less than 1, i used the value of .1/10 . the next lines are roughly the same, but then to increase mouse response, i had to divide xcenter by 4, and it worked! 😛 (kinda a happy accident)

the rest is good, all you had to change was the value of 300 to 1200 since this is half of your movie clip’s width.

finally, i had to change the size of your actual movie to 700 pixels since if it was 300 pixels, there is no way the user could slow down the sliding, since they would probably move their mouse way off the movie and flash would no longer be evaluating xmouse.

anyways, that was kinda long but it works now, enjoy…

---

<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:** [April 11, 2003, 2:07am UTC](https://forum.kirupa.com/t/infinite-menu/17936/5 "2003-04-11T02:07:19Z")

</div>

Thanks a lot Liam! You are truly a genius and I really appreciate you taking the time to help me out like that! It works beautifully and I can now stop taking all those extra strength advil gel-cap things (they work wonders!!..lol)

🙂 🙂

~ Seretha :love:

I really didn’t expect someone to help me out that much. You made my day. Thanks 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:** [April 11, 2003, 2:10am UTC](https://forum.kirupa.com/t/infinite-menu/17936/6 "2003-04-11T02:10:23Z")

</div>

hehe glad i could be of some assistance 🙂
