Infinite Menu

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

Download my .fla at:
http://www.cyberwebs.org/test/infinite.fla

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!

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

~ Seretha :love:

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! :stuck_out_tongue: (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…

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)

:slight_smile: :slight_smile:

~ Seretha :love:

I really didn’t expect someone to help me out that much. You made my day. Thanks again. :slight_smile:

hehe glad i could be of some assistance :slight_smile: