Hello everybody,
I’m pretty new to flash and have been playing with the infinite menu tutorial, however I have been trying to just allow the scrolling effect to take place only on mouse over but with very little success. I know its an old tut’ and I have searched the forum for a possible answer but it seems the question has been asked many times without possible resolve. the nearest code I could find was posted on another thread from 2007:
transparent_mc.[COLOR=#0000ff]onRollOver[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
menu_mc.[COLOR=#0000ff]onEnterFrame[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#000000]var[/COLOR] distance = [COLOR=#0000ff]_root[/COLOR]._xmouse-xcenter;
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR] -= COLOR=#000000[/COLOR];
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR] > [COLOR=#000080]150[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR] = [COLOR=#000080]150[/COLOR];
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR] < -[COLOR=#000080]800[/COLOR][COLOR=#000000])[/COLOR] [COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]_x[/COLOR] = -[COLOR=#000080]800[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
transparent_mc.[COLOR=#0000ff]onRollOut[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR] [COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]delete[/COLOR] menu_mc.[COLOR=#0000ff]onEnterFrame[/COLOR];
[COLOR=#000000]}[/COLOR]
I created a transparent movieclip (instance; transparent_mc) to cover the menu_mc as previously suggested and entered the above code directly on the timeline. I removed the var portion from the existing action applied to the menu_mc and at that point the menu doesn’t scroll at all.
Any help would be appreciated, Thanks…