Вот скрипты полосы прокрутки
Главнфй скрипт на первом фрейме сцены:

Код:
function currentFrame(DraggerXCoord)
{
var _loc1;
_loc1 = StartFrame + AllFrames - Math.round((StopDragCoord - DraggerXCoord) * AllFrames / (StopDragCoord - StartDragCoord));
if (_loc1 <= 0)
{
_loc1 = StartFrame;
} // end if
if (_loc1 >= AllFrames)
{
_loc1 = EndFrame;
} // end if
return (_loc1);
} // End of the function
function currentPos(PointerXCoord)
{
var _loc1;
_loc1 = StartDragCoord + Math.round(PointerXCoord * (StopDragCoord - StartDragCoord) / AllFrames);
if (_loc1 <= StartDragCoord)
{
_loc1 = StartDragCoord;
} // end if
if (_loc1 >= StopDragCoord)
{
_loc1 = StopDragCoord;
} // end if
return (_loc1);
} // End of the function
function Prev()
{
gotoAndPlay(1);
_root.Help._visible = 0;
_root.ButHelp.gotoAndStop(1);
unloadMovieNum(1);
_root.Razdel.gotoAndStop(1);
_root.ButPlayPause.gotoAndStop(1);
} // End of the function
function Next()
{
loadMovieNum("02.swf", 0);
_root.Help._visible = 0;
_root.Razdel.gotoAndStop(1);
unloadMovieNum(1);
} // End of the function
function Exit()
{
fscommand("quit");
} // End of the function
_level0.MouseDown = 0;
_level0.Pause = 0;
_global.Part1 = 1;
_root.Help._visible = 0;
P = 0;
StopDragCoord = 505;
StartDragCoord = 131.9;
StartFrame = 2;
EndFrame = 251;
AllFrames = EndFrame - StartFrame;
if (Txt == 0)
{
_level0._x = 100;
_root.ButText.gotoAndStop(2);
_root.Text._visible = 0;
} // end if
,
Скрипт элемента Dragger:

Код:
onClipEvent (enterFrame)
{
if (_level0.MouseDown == 0)
{
_root.Dragger._x = _root.currentPos(_root._currentframe - _root.StartFrame);
_root.HideDragger._x = _root.Dragger._x;
_root.HideDragger._y = _root.Dragger._y;
} // end if
if (_level0.MouseDown == 1)
{
_root.Dragger._x = _root.HideDragger._x;
if (_root.HideDragger._x < _root.StartDragCoord)
{
_root.Dragger._x = _root.StartDragCoord;
} // end if
if (_root.HideDragger._x > _root.StopDragCoord)
{
_root.Dragger._x = _root.StopDragCoord;
} // end if
_root.gotoAndStop(_root.currentFrame(_root.Dragger._x));
} // end if
}
,
и скрипт элемента HideDragger:

Код:
,
on (press)
{
_root.Dragger.gotoAndStop(3);
_level0.MouseDown = 1;
startDrag (_root.HideDragger, false);
_root.stop();
}
on (release, releaseOutside)
{
_root.Dragger.gotoAndStop(1);
trace (_root._currentframe);
_level0.MouseDown = 0;
_root.HideDragger._x = _root.Dragger._x;
_root.HideDragger._y = _root.Dragger._y;
stopDrag ();
if (_level0.Pause == 0)
{
_root.play();
} // end if
}
on (rollOver)
{
_root.Dragger.gotoAndStop(2);
}
on (rollOut)
{
_root.Dragger.gotoAndStop(1);
}
,
Помогите пожалуйста..А то мне эти скрипты ночами сняться!!!!!