home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- if (the mouseV - the top of sprite the clickOn) > (the height of sprite the clickOn / 2) then
- pageDown()
- else
- pageUp()
- end if
- end
-
- on pageDown
- global top, linesInText, slideRatio, currentLine, textCast, movieLocation
- set the castNum of sprite 40 to 119
- updateStage()
- repeat while the mouseDown
- set currentLine to currentLine + 7
- if currentLine > linesInText then
- set currentLine to linesInText
- end if
- put currentLine into word 5 of movieLocation
- set the locV of sprite 38 to top + ((currentLine - 9) * slideRatio)
- updateStage()
- put char 1 of line currentLine of field textCast into char 1 of line currentLine of field textCast
- end repeat
- end
-
- on pageUp
- global top, linesInText, slideRatio, currentLine, textCast, movieLocation
- set the castNum of sprite 39 to 118
- updateStage()
- repeat while the mouseDown
- set currentLine to currentLine - 7
- if currentLine < 9 then
- set currentLine to 9
- end if
- put currentLine into word 5 of movieLocation
- set the locV of sprite 38 to top + ((currentLine - 9) * slideRatio)
- updateStage()
- put char 1 of line currentLine of field textCast into char 1 of line currentLine of field textCast
- end repeat
- end
-