home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global movieDuration, therange, bndLt, bndRt
- puppetSprite(12, 1)
- set the immediate of sprite 12 to 1
- set dx to the locH of sprite 12 - the mouseH
- updateStage()
- repeat while the mouseDown
- set theLocH to the mouseH + dx
- if (theLocH >= bndLt) and (theLocH <= bndRt) then
- set the locH of sprite 12 to theLocH
- else
- if theLocH > bndRt then
- set the locH of sprite 12 to bndRt
- else
- if theLocH < bndLt then
- set the locH of sprite 12 to bndLt
- end if
- end if
- end if
- updateStage()
- end repeat
- set theMovieTime to integer(movieDuration * (the locH of sprite 12 - bndLt) / 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
-