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)
- pause()
- end
-
- on link where
- global searchWindow, linkString, backString, CDPath, mapNumber, OnLinePath, calPath
- if objectp(searchWindow) then
- forget(searchWindow)
- end if
- if where = EMPTY then
- continue()
- exit
- end if
- set linkString to where
- set backString to "winterd 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
- puppetSound(0)
- set the movieTime of sprite 35 to 1
- set the movieRate of sprite 35 to 1
- repeat while the mouseDown
- nothing()
- end repeat
- repeat while the movieTime of sprite 35 < 270
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- set the rect of sprite 40 to rect(14, 78, 169, 229)
- set the visible of sprite 40 to 1
- repeat with i = 1 to 19
- set the visible of sprite 40 to not (the visible of sprite 40)
- updateStage()
- repeat with n = 1 to 5
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- repeat while the movieTime of sprite 35 < 740
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- set the rect of sprite 40 to rect(576, 120, 632, 394)
- set the visible of sprite 40 to 1
- repeat with i = 1 to 39
- set the visible of sprite 40 to not (the visible of sprite 40)
- updateStage()
- repeat with n = 1 to 5
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- globalRollOver(44, 48)
- updateStage()
- if the mouseDown then
- stopHelp()
- end if
- end repeat
- repeat while not (the mouseDown)
- globalRollOver(44, 48)
- updateStage()
- if the movieTime of sprite 35 >= the duration of cast 100 then
- exit repeat
- end if
- end repeat
- set the visible of sprite 40 to 0
- set the movieRate of sprite 35 to 0
- set the movieTime of sprite 35 to 1
- end
-
- on stopHelp
- set the visible of sprite 40 to 0
- set the movieRate of sprite 35 to 0
- set the movieTime of sprite 35 to 1
- abort()
- end
-