home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
i·claim - visualizing argument
/
ICLAIM.ISO
/
mac
/
intro.swf
/
scripts
/
frame_214
/
DoAction_2.as
next >
Wrap
Text File
|
2005-02-26
|
593b
|
25 lines
function Update()
{
var _loc1_ = (movScroller._y - movMask._y) / movMask._height;
f = Math.round(_loc1_ * 40);
if(f < 1)
{
f = 1;
}
sContent.gotoAndStop(f);
}
top = this.movMask._y;
bottom = this.movMask._y + this.movMask._height - this.movScroller._height;
left = this.movMask._x;
right = this.movScroller._x;
this.movScroller.onMouseDown = function()
{
startDrag("movScroller",0,right,top,right,bottom + 10);
scrollInt = setInterval(Update,10);
};
this.movScroller.onMouseUp = function()
{
stopDrag();
clearInterval(scrollInt);
};