home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global SoundActive, OnceCheck, gQuestionVec, gProgrmPathOnHD, begin
- if SoundActive and (soundBusy(1) = 0) then
- sound playFile 1, gProgrmPathOnHD & "main"
- end if
- if OnceCheck = 0 then
- cursor(-1)
- set OnceCheck to 1
- repeat with i = 3 to 7
- puppetSprite(i, 1)
- set the cursor of sprite i to [34, 35]
- end repeat
- repeat with i = 42 to 48
- puppetSprite(i, 1)
- end repeat
- if soundBusy(1) = 1 then
- if begin = 0 then
- sound playFile 1, gProgrmPathOnHD & "main"
- else
- set begin to 0
- end if
- end if
- end if
- repeat with i = 3 to 7
- if the member of sprite i = "origin" = 0 then
- if rollOver(i) = 0 then
- set the member of sprite i to member "origin"
- end if
- end if
- end repeat
- go(the frame)
- end
-
- on mouseDown
- global checkPress
- set checkPress to the clickOn
- set bDown to the clickOn
- if (bDown > 2) and (bDown < 8) then
- set checkVec to ["slides", "entertainment", "history", "trivia", "drinks"]
- set dest to getAt(checkVec, bDown - 2)
- set the member of sprite bDown to member ("main-" & dest)
- else
- if bDown > 41 then
- buttonPressedDown(bDown, "main")
- end if
- end if
- end
-
- on mouseUp
- global checkPress, Fade, currMarker, gCurrentZone, StartMusic
- set checkPress2 to the clickOn
- if checkPress = checkPress2 then
- set bUp to the clickOn
- if (bUp > 2) and (bUp < 8) then
- set checkVec to ["slides", "entAnim", "history", "triviaInit", "drinks"]
- set destName to getAt(checkVec, bUp - 2)
- set the member of sprite bUp to member "origin"
- set Fade to 1
- clearPuppets()
- set x to the number of lines in field "backField"
- put marker(0) into line x + 1 of field "backField"
- if destName = "drinks" then
- set StartMusic to 1
- else
- if destName = "slides" then
- set gCurrentZone to 1
- else
- if destName = "trivia" then
- set the scrollTop of member "trivia base mat.1.board" to 0
- inittrivia()
- end if
- end if
- end if
- go(marker(destName))
- else
- if bUp > 41 then
- buttonPressedUp(bUp, "main")
- end if
- end if
- end if
- end
-