home *** CD-ROM | disk | FTP | other *** search
- on mouscrollUP p_sprt
- global y_mouwait, y_linum, y_textlines
- set txcastname to the name of cast the castNum of sprite p_sprt
- startTimer()
- set l_mouroll to #PAGE
- repeat while the mouseDown = 1
- if the timer < y_mouwait then
- nothing()
- next repeat
- end if
- set l_mouroll to #line
- exit repeat
- end repeat
- if l_mouroll = #line then
- repeat while the mouseDown = 1
- scrollByLine(member txcastname, -1)
- set y_linum to y_linum - 1
- jDoPause(5)
- updateStage()
- end repeat
- else
- set the visible of sprite the clickOn to 0
- scrollByPage(member txcastname, -1)
- set y_linum to y_linum - y_textlines
- end if
- end
-
- on mouscrolldown p_sprt
- global y_mouwait, y_linum, y_textlines
- set txcastname to the name of cast the castNum of sprite p_sprt
- startTimer()
- set l_mouroll to #PAGE
- repeat while the mouseDown = 1
- if the timer < y_mouwait then
- nothing()
- next repeat
- end if
- set l_mouroll to #line
- exit repeat
- end repeat
- if l_mouroll = #line then
- repeat while the mouseDown = 1
- scrollByLine(member txcastname, 1)
- set y_linum to y_linum + 1
- jDoPause(5)
- updateStage()
- if y_linum >= the lineCount of member txcastname then
- set y_linum to the lineCount of member txcastname
- set the visible of sprite the clickOn to 0
- exit repeat
- end if
- end repeat
- else
- set the visible of sprite the clickOn to 0
- scrollByPage(member txcastname, 1)
- set y_linum to y_linum + y_textlines
- if y_linum > the lineCount of member txcastname then
- set y_linum to the lineCount of member txcastname
- end if
- end if
- end
-
- on jdoscUP p_ilup, p_sprt
- global y_textlines, y_linum
- set txcastname to the name of cast the castNum of sprite p_sprt
- if the scrollTop of member txcastname <> 0 then
- jdocursor(p_ilup)
- jDoRollover(p_ilup)
- else
- set y_linum to y_textlines
- jdocursor(p_ilup * -1)
- end if
- end
-
- on jdoscDOWN p_ilup, p_sprt
- global y_textlines, y_linum
- set txcastname to the name of cast the castNum of sprite p_sprt
- if y_linum < the lineCount of member txcastname then
- jdocursor(p_ilup)
- jDoRollover(p_ilup)
- else
- set y_linum to the lineCount of member "TDMask"
- jdocursor(p_ilup * -1)
- end if
- end
-