home *** CD-ROM | disk | FTP | other *** search
- on mouseDown
- global whMenuItem, whMenuCol
- set mh to the mouseH
- set mv to the mouseV
- set offsetV to 23
- set offsetH1 to 5
- set offsetH2 to 161
- set width1 to 148
- set width2 to 131
- set unitV to 28
- set whMenuItem to (mv - (offsetV - unitV)) / unitV
- if (mh > 297) or (whMenuItem > 6) then
- set whMenuItem to 100
- else
- if (whMenuItem > 0) and (whMenuItem < 6) then
- repeat while the stillDown
- if mh > 157 then
- set the castNum of sprite 48 to 800
- set the lineSize of sprite 48 to 2
- set the foreColor of sprite 48 to 26
- spriteBox(48, offsetH2, offsetV + (unitV * whMenuItem) - unitV, offsetH2 + width2, offsetV + (unitV * whMenuItem))
- updateStage()
- set whMenuCol to 2
- next repeat
- end if
- set the castNum of sprite 48 to 800
- set the lineSize of sprite 48 to 2
- set the foreColor of sprite 48 to 26
- spriteBox(48, offsetH1, offsetV + (unitV * whMenuItem) - unitV, offsetH1 + width1, offsetV + (unitV * whMenuItem))
- updateStage()
- set whMenuCol to 1
- end repeat
- end if
- end if
- end
-
- on mouseUp
- global whMenuItem, whMenuCol, dis
- setOffStage("47,48")
- setPuppets(47, 48, 0)
- updateStage()
- if whMenuCol = 2 then
- set whMenuItem to whMenuItem - 6
- end if
- if whMenuItem = -5 then
- doArtMenu()
- end if
- if whMenuItem = -4 then
- doImgMenu()
- end if
- if whMenuItem = -3 then
- keywordOpen()
- end if
- if whMenuItem = -2 then
- helpOpen()
- end if
- if whMenuItem = -1 then
- notepadOpen()
- end if
- if whMenuItem = 1 then
- set dis to 1
- setPuppets(48, 48, 1)
- set the stretch of sprite 48 to 0
- set the castNum of sprite 48 to 797
- set the locH of sprite 48 to 0
- set the locV of sprite 48 to 20
- updateStage()
- end if
- if whMenuItem = 2 then
- set dis to 1
- setPuppets(48, 48, 1)
- set the stretch of sprite 48 to 0
- set the castNum of sprite 48 to 797
- set the locH of sprite 48 to 0
- set the locV of sprite 48 to 20
- updateStage()
- end if
- if whMenuItem = 3 then
- set dis to 1
- setPuppets(48, 48, 1)
- set the stretch of sprite 48 to 0
- set the castNum of sprite 48 to 797
- set the locH of sprite 48 to 0
- set the locV of sprite 48 to 20
- updateStage()
- end if
- if whMenuItem = 4 then
- doPrevScr()
- end if
- if whMenuItem = 5 then
- doQuit()
- end if
- end
-