home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global movieDuration, therange, bndTp, bndBt
- puppetSprite(12, 1)
- set the immediate of sprite 12 to 1
- set dx to the locV of sprite 12 - the mouseV
- updateStage()
- repeat while the mouseDown
- set theLocV to the mouseV + dx
- if (theLocV >= bndTp) and (theLocV <= bndBt) then
- set the locV of sprite 12 to theLocV
- else
- if theLocV > bndBt then
- set the locV of sprite 12 to bndBt
- else
- if theLocV < bndTp then
- set the locV of sprite 12 to bndTp
- end if
- end if
- end if
- updateStage()
- end repeat
- set theMovieTime to integer(movieDuration * (the locH of sprite 12 - bndTp) / therange * 1.0)
- if theMovieTime >= movieDuration then
- puppetSprite(8, 0)
- updateStage()
- go(marker(0) + 11)
- else
- set thePos to the frame - marker(0)
- if (thePos < 7) or (thePos > 10) then
- go(marker(0) + 7)
- end if
- puppetSprite(8, 1)
- set the movieTime of sprite 8 to theMovieTime
- set the movieRate of sprite 8 to 1
- set the castNum of sprite 11 to 448
- end if
- end
-