home *** CD-ROM | disk | FTP | other *** search
/ Boot Disc 1 / boot-disc-1996-08.iso / bootcd.dir / 00440_Script_440 < prev    next >
Text File  |  1996-07-02  |  609b  |  20 lines

  1. -- point(149, 421) start
  2. -- point(281, 421) end
  3.  
  4. on mouseDown
  5.   set startx=369
  6.   set endx=510
  7.   set moviedur=the duration of member (the membernum of sprite 4)
  8.   puppetsprite 9,true
  9.   repeat while the mouseDown
  10.     set curH=min(max(the mouseH,startx),endx)
  11.     set the locH of sprite 9 to curH
  12.     set the movieTime of sprite 4 to min(max(moviedur*(curH-startx)/(endx-startx),0),moviedur)
  13.     updatestage
  14.   end repeat
  15.   if the membernum of sprite 12 = the number of member "playhigh" then
  16.     set the movieRate of sprite 4 to 1.0
  17.   else
  18.     set the movieRate of sprite 4 to 0.0
  19.   end if
  20. end