home *** CD-ROM | disk | FTP | other *** search
- on globalButtonInit start, end
- global lastChannel
- set lastChannel to 0
- repeat with i = start to end
- puppetSprite(i, 1)
- end repeat
- end
-
- on freeSprites start, end
- repeat with i = start to end
- puppetSprite(i, 0)
- end repeat
- end
-
- on globalRollOver start, end
- global lastChannel, backString, movieLocation
- if lastChannel <> 0 then
- if rollOver(lastChannel) then
- exit
- else
- set the castNum of sprite lastChannel to the castNum of sprite lastChannel - 1
- set lastChannel to 0
- end if
- end if
- repeat with i = start to end
- if rollOver(i) then
- set the castNum of sprite i to the castNum of sprite i + 1
- updateStage()
- set lastChannel to i
- exit
- end if
- end repeat
- end
-
- on showSearch
- global searchWindow, CDPath
- if objectp(searchWindow) then
- forget(searchWindow)
- end if
- set searchRect to rect(88, 51, 552, 429)
- set searchWindow to window "search"
- set the rect of searchWindow to searchRect
- set the fileName of searchWindow to CDPath & "search\search"
- set the titleVisible of searchWindow to 0
- set the modal of searchWindow to 1
- open(searchWindow)
- end
-
- on link where
- global searchWindow, linkString, backString, CDPath, OnLinePath, mapNumber, calPath
- if objectp(searchWindow) then
- forget(searchWindow)
- end if
- if where = EMPTY then
- exit
- end if
- set linkString to where
- set backString to "calndr1 0 0 0 0"
- cleanUp()
- set name to word 1 of linkString
- if name = "climate" then
- go(value(word 2 of linkString), CDPath & name & "\" & name)
- else
- go(1, CDPath & name & "\" & name)
- end if
- exit
- end
-
- on cleanUp
- global CDPath, HDPath, calPath, OnLinePath, linkString, backString, linkFlag
- set temp1 to CDPath
- set temp2 to HDPath
- set temp3 to linkString
- set temp4 to backString
- set temp5 to calPath
- set temp6 to OnLinePath
- set temp7 to linkFlag
- clearGlobals()
- set CDPath to temp1
- set HDPath to temp2
- set linkString to temp3
- set backString to temp4
- set calPath to temp5
- set OnLinePath to temp6
- set linkFlag to temp7
- end
-
- on doHelp
- global CDPath, calPath
- repeat while the mouseDown
- nothing()
- end repeat
- set the volume of sprite 42 to 232
- play frame 20
- end
-
- on killHelp
- global calPath
- cursor(4)
- repeat with i = 1 to 31
- removeMinder(i, 0)
- end repeat
- minderFinder()
- cursor(-1)
- set the volume of sprite 42 to 236
- play done
- end
-