home *** CD-ROM | disk | FTP | other *** search
/ i·claim - visualizing argument / ICLAIM.ISO / mac / intro.swf / scripts / frame_214 / DoAction_2.as next >
Text File  |  2005-02-26  |  593b  |  25 lines

  1. function Update()
  2. {
  3.    var _loc1_ = (movScroller._y - movMask._y) / movMask._height;
  4.    f = Math.round(_loc1_ * 40);
  5.    if(f < 1)
  6.    {
  7.       f = 1;
  8.    }
  9.    sContent.gotoAndStop(f);
  10. }
  11. top = this.movMask._y;
  12. bottom = this.movMask._y + this.movMask._height - this.movScroller._height;
  13. left = this.movMask._x;
  14. right = this.movScroller._x;
  15. this.movScroller.onMouseDown = function()
  16. {
  17.    startDrag("movScroller",0,right,top,right,bottom + 10);
  18.    scrollInt = setInterval(Update,10);
  19. };
  20. this.movScroller.onMouseUp = function()
  21. {
  22.    stopDrag();
  23.    clearInterval(scrollInt);
  24. };
  25.