# Infinite Menu Problem

**URL:** https://forum.kirupa.com/t/infinite-menu-problem/18981
**Category:** flash
**Created:** [April 23, 2003, 5:19am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981 "2003-04-23T05:19:41Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![onLOoker](https://avatars.discourse-cdn.com/v4/letter/o/ac8455/32.png) [@onLOoker](https://forum.kirupa.com/u/onLOoker)
#### Post date: [April 23, 2003, 5:19am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/1 "2003-04-23T05:19:41Z")

</div>

Hi everyone,

I am having a problem with my infinite menu. I have setup the mc just like the tutorial. Used and modified the actionscript as mentioned in the tutotial. But when I run it, the movie scrolls and comes to end of the pictures with empty space. How could I fix 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: [April 23, 2003, 5:51am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/2 "2003-04-23T05:51:09Z")

</div>

post your version of the code and someone should be able to correct it for you. Most probably the targeting to the scrolling MC isn’t right and it isn’t looping properly… just can’t tell without the code or even better the \*.fla file.

---

<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 23, 2003, 1:56pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/3 "2003-04-23T13:56:43Z")

</div>

yes… please post the fla. Much easier that way.

---

<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 23, 2003, 3:03pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/4 "2003-04-23T15:03:27Z")

</div>

i think i know your problem is… [same prob](http://64.207.155.38/forums/showthread.php?s=&threadid=21097)  
make all of your pictures into movieclip…

---

<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 23, 2003, 3:59pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/5 "2003-04-23T15:59:30Z")

</div>

I have checked my pictures. They are all converted to mc.

My fla is too huge. I can’t attach it…

I don’t understand why it doesn’t loop properly… Plays the pics as is then it get cut off with a empty space then recontinues with the pics.

onClipEvent (load)  
{  
xcenter=575;  
speed=1/100;  
}  
onClipEvent (enterFrame)  
{  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance_speed);  
}  
onClipEvent (enterFrame)  
{  
// 320 px is half of the movie clip  
var distance=\_root.\_xmouse-xcenter;  
\_x+=(distance_speed);  
if (\_x \> 0) {  
\_x=-320;  
}  
if (\_x \< -320) {  
\_x=0;  
}  
}

Basically, the -320 is half the size of the move clip (menu\_gen) that hold pictures stored as movie clips (total 640, 320 each).

I don’t see anything wrong with the script or the width of the pics.

---

<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 23, 2003, 4:05pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/6 "2003-04-23T16:05:12Z")

</div>

let’s do some test here…  
for the first empty pic, convert the pic once more into mc…  
if it works, do for the rest of it…

---

<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 23, 2003, 4:21pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/7 "2003-04-23T16:21:07Z")

</div>

There is no empty pic. There’s a movie clip called menu\_gen that holds 2 pictures in it stored as movie clips. Those pictures within the menu\_gen movie clip are called pic1 and pic2.

---

<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 23, 2003, 4:29pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/8 "2003-04-23T16:29:39Z")

</div>

ups sorry my big mistake!!! i’m not observe your post clearly…  
u mean there’s a gap between the loop isn’t it??  
sorry it’s suppose to be my bed time…🙂

---

<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 23, 2003, 4:35pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/9 "2003-04-23T16:35:56Z")

</div>

have u check your registration point?? is it in the left end point?

---

<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 23, 2003, 4:40pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/10 "2003-04-23T16:40:08Z")

</div>

the menu\_gen that hold the pictures is set to left end registration point. The movieclips (pics) within the menu\_gen is set in the center.

---

<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 23, 2003, 4:42pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/11 "2003-04-23T16:42:53Z")

</div>

Additionally, this infinite menu isn’t called through the main timeline, it is nested within a movieclip.

---

<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 23, 2003, 6:21pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/12 "2003-04-23T18:21:33Z")

</div>

Alright, I have deleted the original menu mc and recreated the mc again. It still has a white space there (about half the width of one picture. I must not be positioning the mc correctly.

Any suggestions on this problem?

---

<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 24, 2003, 3:35am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/13 "2003-04-24T03:35:12Z")

</div>

here’s a link to the swf.

66.92.162.121/aud.swf

try it, see it, and let me know if you could figure out the problem. I can’t seem to figure out.

---

<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 25, 2003, 5:22pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/14 "2003-04-25T17:22:03Z")

</div>

sorry onLooker… have to see the fla…  
u could send it by making example of it but not with the whole image…

---

<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 25, 2003, 8:03pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/15 "2003-04-25T20:03:23Z")

</div>

onLooker… you have to post the fla, please.

---

<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 25, 2003, 8:19pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/16 "2003-04-25T20:19:13Z")

</div>

im havin the same prob as this guy so i hope you dont mind me posting my .fla in here instead of making a new thread…

anywho… here it is, thx for the 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: [April 25, 2003, 10:24pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/17 "2003-04-25T22:24:20Z")

</div>

My fla is over a 100k. How do I reduce the size of it?

---

<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 26, 2003, 1:31am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/18 "2003-04-26T01:31:59Z")

</div>

zip it

---

<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 26, 2003, 5:05am UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/19 "2003-04-26T05:05:38Z")

</div>

Alright, here’s the fla file. Let me know if you have any luck in solving this problem. I deleted the mc and redid it again, but no luck. Thanks in advance!

[http://66.92.162.121/audi4.fla](http://66.92.162.121/audi4.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 26, 2003, 11:38pm UTC](https://forum.kirupa.com/t/infinite-menu-problem/18981/20 "2003-04-26T23:38:36Z")

</div>

Montoya, I have tried to reply to your pm but it says your mail box is full. Here’s the URL to the infinite menu fla file. Let me know if you could fix it. Hey IndoJepang, you could try it and see if you could figure it out too. Thanks everyone!

66.92.162.121/audi4.fla

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