I downloaded the infinite menu which is under new tutorial on top page.
But now what i want to do is to make it stop on rollover. I have seen that example at
Does anybody know how to do that?
Thank you for your help
I downloaded the infinite menu which is under new tutorial on top page.
But now what i want to do is to make it stop on rollover. I have seen that example at
Does anybody know how to do that?
Thank you for your help
I’ve done the same thing for the website i’m doing…
I did a little bit of modification to the code:
onClipEvent (load)
{
xcenter=240.1;
speed=1/20;
mode=true;
}
onClipEvent (enterFrame)
{
if(mode){
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
if (_x > 0 ) _x=-840;
if (_x < -840 ) _x=0;
}
}
i’ve made the infinite menu into a movieclip, its instance name on the main timeline is “scrollbar”. the instance name of menu_general is “menu”.
so, on each one of the button on the infinite menu, i enter this code:
on(rollOut)
{_root.scrollbar.menu.mode=true;}
on(rollOver)
{_root.scrollbar.menu.mode=false;}
so… u can do a bit of modification to the instance name yourself…
I’m still quite new to flash, only a few weeks old…so correct me if any of these terms that i use are wrong… took me quite a long time by trial and error… coz i didn’t understand all these level and instance stuff…
hope this is helpful
onClipEvent (load)
{
xcenter=345;
speed=1/30;
mode=true;
}
onClipEvent (enterFrame)
{
if(mode){
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
var distance=_root._xmouse-xcenter;
_x+=(distancespeed);
if (_x > 0) _x=-1059;
if (_x < -1059) _x=0;
}
BUT I get this error
Symbol=menu_a, Layer=Layer 1, Frame=1: Line 8: Statement block must be terminated by ‘}’
{
Symbol=menu_a, Layer=Layer 1, Frame=1: Line 16: Syntax error.
}
Can you help
you just need another bracket at the end
:: Copyright KIRUPA 2024 //--