home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- set spritenum to the clickOn
- set upcast to the memberNum of sprite spritenum
- set castname to the name of member upcast
- set downcast to the number of member (castname & "Down")
- puppetSprite(spritenum, 1)
- set the memberNum of sprite spritenum to downcast
- updateStage()
- set numlines to the number of lines in the text of member "display"
- if the scrollTop of member "display" < ((numlines - 6) * 30) then
- set the scrollTop of member "display" to the scrollTop of member "display" + 30
- set the visible of sprite castsprite("prevbtn") to 1
- else
- set the visible of sprite spritenum to 0
- end if
- startTimer()
- repeat while the timer < 30
- end repeat
- repeat while the mouseDown
- if the scrollTop of member "display" < ((numlines - 6) * 30) then
- set the scrollTop of member "display" to the scrollTop of member "display" + 30
- set the visible of sprite castsprite("prevbtn") to 1
- next repeat
- end if
- set the visible of sprite spritenum to 0
- end repeat
- set the memberNum of sprite spritenum to upcast
- updateStage()
- puppetSprite(spritenum, 0)
- end
-