Scrolling menu [you gauys are my last hope]

heey guys,
i wanna make a horizontal scroling menu with thums in it (about 36). when click on it, it has to load another movie.
if you go with tour mouse to the right, it’s gonna scroll faster, in the middle it stops, and mouse to the left it must scroll faster in the opposite direction of the right side (you know the idee).
i’ve d/l some samples from flashkit, but i can’t figure out how, and were to putt the action script.
And with the samples are alot of xtras in the menu’s, wich i won’t want, and their also in actionscript, so it’s more harder to tell wich actionscript i need only for the scroling part.

can somebody plz help me, you are my last hope :*(

Did you check the tutes? It’s the first on the main page, and the featured tute of the week… :x

did it after i read tour reply, but can’t find it :-\
can put a link here or something

http://www.kirupa.com/developer/mx/infinite.asp

:( :( :( :(
can’t open the source file eivh you have to d/l
i’m running flash 5, hope not that that’s the prob

verry nice tute though

Even though the file doesn’t open since it was made in Flash MX, the code should work just the same in Flash 5.

So if you follow the tutorial it should all work out anyway, even without the source file.

Tnx for the verry verry fast reply:o
Read the tute and saw that i didn’t need the source file indeed.
there is yet one part which i do not understand

the registration part.

i can’t find where i set thode settings.

Hmmm, I use Flash MX as well so I don’t know where they are in Flash 5.

http://www.kirupa.com/developer/mx/rpoint.asp

There is a tutorial for MX on editing the registration point.

It <I><U>might</U></I> be of some help to you.

in other words:
the registration point in the turning point of your object?

Yeah… its like the center of your clip.

You move that point to change the centerpoint of your clip.

if the center of your clip is in the upper left hand corner, if you spin it it will rotate from that point, etc.

:slight_smile: :slight_smile:
almost done
only were doe i put this actionscript

onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}

just under the other, so in the movieclips?

onClipEvent (load)
{
   xcenter=150;
   speed=1/10;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x+=(distance*speed);
}

Will become

onClipEvent (load)
{
   xcenter=150;
   speed=1/10;
}
onClipEvent (enterFrame)
{
   var distance=_root._xmouse-xcenter;
   _x+=(distance*speed);
   if (_x > 0) _x=-300;
   if (_x < -300) _x=0;
}

That is all there is to it.

alright, i get it
tnx alot for your help m8
it’s only guissing for the vallue of the last 2 valluess (if u know what i mean)

Ciaozz

Yeah, those values depend on the width of your clip and the width of your movie.

I usually just do guess and check when faced with that.

Either that or you can take the width of your movie, and in this case add the width of your movie clip. and you can move it there.

:beam: :beam: :beam:

Good job!!

Urgh!!!

well guys, i celebrated too fast. i still have a few questions left

1- the copied moviedoes it as to start at the end of the other clip, or, has it to start on the end of movie?
2- i can only choose a registration point on the upper left or the centrer. does this matter?
3- when i have done the whole tute, and checked the vallues, and i try the clip out (and i’m sure of it that the vallues are almost correct) the clip doesn’t roll but it starts some were in the middle of the movie, it kinda overlap the other instead of beginnnig right behind it. and if i adjust the values just a little bit, it starts at the end of the movie, so you get a gap. where lies the prob here?
[edit]
4- does the 2 ‘guessed vallues’ have to bee the same?
[/edit]

:-\ :-\