Killing one function with another

Ok… That was a pretty bad way of explaining what I’m trying to do.
The deal is as follows:
I have a movieclip that is wider than the stage. When the user moves his mouse within a certain area on the left or right sides the movieclip tweens to that side. So far, so good.

Now I also have scripted tweens when the user clicks on certain movieclips within the sliding clip, and when this occurs I want to disable the left/right scrolling detection. What I’ve done is to declare a variable (mayScroll) with a boolean value and to make this conditional for the sidescrolling to occur.

The problem is that somehow the variable is updated to early sometimes when leaving the zooming tweens, and so my movieclip springs all over the place.

I’m sure by now noone understands what the hell I’m on about, so here is the script:
ActionScript Code:
[FONT=Courier New][LEFT][COLOR=#808080]#include “lmc_tween_as1.as”[/COLOR]
[COLOR=#000000]var[/COLOR] mayScroll = [COLOR=#000000]true[/COLOR];
[COLOR=#000000]var[/COLOR] xMouse = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_xmouse[/COLOR];
[COLOR=#000000]var[/COLOR] yMouse = [COLOR=#0000ff]_root[/COLOR].[COLOR=#0000ff]_ymouse[/COLOR];

showUI = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
backBtn.[COLOR=#000080]alphaTo[/COLOR][COLOR=#000000]([/COLOR][COLOR=#000080]100[/COLOR], [COLOR=#000080]2[/COLOR], [COLOR=#ff0000]“easeinSine”[/COLOR],[COLOR=#000080]1[/COLOR][COLOR=#000000])[/COLOR]
backBtn.[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]true[/COLOR];
[COLOR=#000000]}[/COLOR]
seksjonFunk = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
panel.[COLOR=#000080]skjermBtn[/COLOR].[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]true[/COLOR];
panel.[COLOR=#000080]vognBtn[/COLOR].[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]true[/COLOR];
mayScroll = [COLOR=#000000]true[/COLOR];

[COLOR=#000000]}[/COLOR]

panel.[COLOR=#0000ff]onMouseMove[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]_xmouse[/COLOR] > [COLOR=#000080]600[/COLOR][COLOR=#000000])[/COLOR]&&[COLOR=#000000]([/COLOR]mayScroll == [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]slideTo[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR] [COLOR=#0000ff]else[/COLOR] [COLOR=#0000ff]if[/COLOR] [COLOR=#000000]([/COLOR][COLOR=#000000]([/COLOR][COLOR=#0000ff]_xmouse[/COLOR] < [COLOR=#000080]150[/COLOR][COLOR=#000000])[/COLOR]&&[COLOR=#000000]([/COLOR]mayScroll == [COLOR=#000000]true[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]slideTo[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]

panel.[COLOR=#000080]skjermBtn[/COLOR].[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
mayScroll = [COLOR=#000000]false[/COLOR];
panel.[COLOR=#000080]scaleTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]slideTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]rotateTo[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]false[/COLOR];
showUICOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]

panel.[COLOR=#000080]vognBtn[/COLOR].[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
mayScroll = [COLOR=#000000]false[/COLOR];
panel.[COLOR=#000080]scaleTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]slideTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]rotateTo[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]false[/COLOR];
showUICOLOR=#000000[/COLOR];
[COLOR=#000000]}[/COLOR]

backBtn.[COLOR=#0000ff]onRelease[/COLOR] = [COLOR=#000000]function[/COLOR]COLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]
panel.[COLOR=#000080]rotateTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]scaleTo[/COLOR]COLOR=#000000[/COLOR];
panel.[COLOR=#000080]slideTo[/COLOR]COLOR=#000000[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#0000ff]enabled[/COLOR] = [COLOR=#000000]false[/COLOR];
[COLOR=#0000ff]this[/COLOR].[COLOR=#000080]alphaTo[/COLOR]COLOR=#000000[/COLOR];
mayScroll = [COLOR=#000000]true[/COLOR];
seksjonFunkCOLOR=#000000[/COLOR];
[COLOR=#000000]}

[/COLOR]
[/LEFT]
[/FONT]

And here is the .fla
SWF can be found here
What I need help with is the following:
Whenever the user clicks one of the movieclips that starts a zoom-tween, the sidescrolling stops altogether.
When the user leaves the “zoomed in area” and returns to the main section, the sidescrolling does not start again until after the zoom-out tween is over and done with.

As you can see I’m using the tweening libraries from http://laco.wz.cz/tween/, so the .fla will not play properly unless you save it in the same folder as these prototype files.
Sorry bout that.

If anyone have any ideas I would be most relieved as this is supposed to go live shortly and I’ve been staring into the screen for far too long to see what I’m missing.

-m