home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
i·claim - visualizing argument
/
ICLAIM.ISO
/
mac
/
t_06.swf
/
scripts
/
DefineSprite_363
/
frame_1
/
DoAction.as
Wrap
Text File
|
2005-02-28
|
809b
|
31 lines
function Update()
{
var _loc1_ = (movScroller._y - movMask._y) / movMask._height;
trace("ratio=" + _loc1_);
f = Math.round(_loc1_ * movIn._totalframes);
if(f < 1)
{
f = 1;
}
movIn.gotoAndStop(f);
trace("f=" + f);
trace(movIn._y);
}
top = this.movMask._y;
bottom = this.movMask._y + this.movMask._height - this.movScroller._height;
left = this.movMask._x;
right = this.movScroller._x;
trace("top=" + top + " bottom=" + bottom + " left=" + left + " right=" + right);
this.movScroller.onMouseDown = function()
{
startDrag("movScroller",0,right,top,right,bottom + 10);
trace("start drag");
scrollInt = setInterval(Update,10);
};
this.movScroller.onMouseUp = function()
{
stopDrag();
trace("stop drag");
clearInterval(scrollInt);
};