Need to customize the infinite menu

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!

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.

Here is what you want i think :slight_smile:

Ubik

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

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.

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.

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

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

change this line

if (_x<-300) _x=10

to

if (_x<-300) _x=0

and it will work correctly :slight_smile:

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.

No it will stay 0.

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

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

You’re welcome :slight_smile: