home *** CD-ROM | disk | FTP | other *** search
- on RVXScrollTable
- global RVXScrollBarSprite, RVXScrollBoxSprite, RVXResFieldsList
- if (the mouseV > 110) and (the mouseV < 128) then
- repeat while (the mouseV > 110) and (the mouseV < 128)
- if (the mouseH > 605) and (the mouseH < 641) then
- repeat while (the mouseH > 605) and (the mouseH < 641)
- if the mouseDown then
- repeat while the mouseDown
- if the locH of sprite 20 > 5 then
- repeat with t = 20 to 29
- set the locH of sprite t to the locH of sprite t - 6
- end repeat
- set the locH of sprite RVXScrollBoxSprite to the locH of sprite RVXScrollBoxSprite + 16
- updateStage()
- end if
- end repeat
- end if
- end repeat
- end if
- if (the mouseH > 0) and (the mouseH < 36) then
- repeat while (the mouseH > 0) and (the mouseH < 36)
- if the mouseDown then
- repeat while the mouseDown
- if the locH of sprite 20 < 209 then
- repeat with t = 20 to 29
- set the locH of sprite t to the locH of sprite t + 6
- end repeat
- set the locH of sprite RVXScrollBoxSprite to the locH of sprite RVXScrollBoxSprite - 16
- updateStage()
- end if
- end repeat
- end if
- end repeat
- end if
- if rollOver(RVXScrollBoxSprite) and the mouseDown then
- set OrigmouseH to the mouseH
- set BoxLocH to the locH of sprite RVXScrollBoxSprite
- set BarLocH to the locH of sprite 20
- set valueBox to OrigmouseH - BoxLocH
- repeat while the mouseDown
- set the locH of sprite RVXScrollBoxSprite to the mouseH - valueBox
- set ValBox to integer((the locH of sprite RVXScrollBoxSprite - 38) / 16)
- if ValBox > 34 then
- set ValBox to 34
- end if
- set the locH of sprite 20 to 209 - (6 * ValBox)
- repeat with t = 1 to count(RVXResFieldsList)
- set the locH of sprite getAt(getAt(RVXResFieldsList, t), 1) to getAt(getAt(RVXResFieldsList, t), 2) - (6 * ValBox)
- end repeat
- if (the locH of sprite RVXScrollBoxSprite > 38) and (the locH of sprite RVXScrollBoxSprite < 582) then
- updateStage()
- next repeat
- end if
- if the locH of sprite RVXScrollBoxSprite < 70 then
- set the locH of sprite RVXScrollBoxSprite to 38
- set the locH of sprite 20 to 209
- repeat with t = 1 to count(RVXResFieldsList)
- set the locH of sprite getAt(getAt(RVXResFieldsList, t), 1) to getAt(getAt(RVXResFieldsList, t), 2)
- end repeat
- else
- set the locH of sprite RVXScrollBoxSprite to 582
- set the locH of sprite 20 to 209 - 204
- repeat with t = 1 to count(RVXResFieldsList)
- set the locH of sprite getAt(getAt(RVXResFieldsList, t), 1) to getAt(getAt(RVXResFieldsList, t), 2) - 204
- end repeat
- end if
- updateStage()
- end repeat
- end if
- if (the mouseH < 605) and (the mouseH > 36) and not rollOver(RVXScrollBoxSprite) and the mouseDown then
- set the locH of sprite RVXScrollBoxSprite to the mouseH
- set ValBox to integer((the mouseH - 38) / 16)
- if ValBox > 34 then
- set ValBox to 34
- end if
- set the locH of sprite RVXScrollBoxSprite to 38 + (16 * ValBox)
- set the locH of sprite 20 to 209 - (6 * ValBox)
- repeat with t = 1 to count(RVXResFieldsList)
- set the locH of sprite getAt(getAt(RVXResFieldsList, t), 1) to getAt(getAt(RVXResFieldsList, t), 2) - (6 * ValBox)
- end repeat
- updateStage()
- end if
- end repeat
- end if
- end
-