home *** CD-ROM | disk | FTP | other *** search
- on setsection sectionname, hCoord, vCoord
- global languagechosen, firstpage, gCurrentSection, gLastSection, gLastMovie, oldHCoord, oldVCoord
- cursor(4)
- set oldHCoord to hCoord
- set oldVCoord to vCoord
- set gLastSection to gCurrentSection
- set gCurrentSection to sectionname
- set gLastMovie to EMPTY
- set firstpage to 1
- set the visible of sprite 10 to 0
- set the visible of sprite 13 to 0
- if the frame = 4 then
- set the member of sprite 2 to member "blanker"
- puppetSprite(11, 0)
- set the visible of sprite 9 to 0
- updateStage()
- set the visible of sprite 14 to 0
- end if
- set the member of sprite 10 to member ("CCSGTitle" & sectionname) of castLib languagechosen
- set the ink of sprite 10 to 36
- set the locH of sprite 10 to hCoord
- set the locV of sprite 10 to vCoord
- set the text of member "CCSGhint" to the text of member ("CCSG" & sectionname & "hint") of castLib languagechosen
- set the text of member "CCSGhint2" to the text of member ("CCSG" & sectionname & "hint") of castLib languagechosen
- go(sectionname)
- end
-
- on startMovie
- global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount, lastrollover, novideo
- set languagechosen to "english"
- set the visible of sprite 3 to 0
- set the name of castLib "English" to languagechosen
- set the fileName of castLib languagechosen to the pathName & languagechosen & ".cst"
- set gHighlightColor to 32
- set gLowlightColor to 249
- set currentSection to 7
- set lastrollover to 1
- set novideo to 0
- puppetSprite(47, 1)
- puppetSprite(44, 1)
- puppetSprite(45, 1)
- end
-
- on setup
- global gFromFrame, gHighlightColor, gLowlightColor, gOldLine, currentSection, languagechosen, colorcount, lastrollover, novideo
- set the visible of sprite 40 to 0
- set the visible of sprite 48 to 0
- puppetSprite(41, 1)
- puppetSprite(42, 1)
- puppetSprite(43, 1)
- puppetSprite(44, 1)
- puppetSprite(45, 1)
- puppetSprite(46, 1)
- puppetSprite(48, 1)
- set the member of sprite 44 to member "popupPrevious" of castLib languagechosen
- set the ink of sprite 44 to 36
- set the locH of sprite 44 to 159
- set the locV of sprite 44 to 412
- set the member of sprite 45 to member "popupcontents" of castLib languagechosen
- set the ink of sprite 45 to 36
- set the locH of sprite 45 to 270
- set the locV of sprite 45 to 412
- set the member of sprite 46 to member "popupcover" of castLib languagechosen
- set the ink of sprite 46 to 36
- set the locH of sprite 46 to 382
- set the locV of sprite 46 to 412
- set the text of member "popuptext" to the text of member "popuptext" of castLib languagechosen
- set the member of sprite 48 to member "popuptext" of castLib languagechosen
- set the ink of sprite 48 to 36
- set the locH of sprite 48 to 180
- set the locV of sprite 48 to 39
- set the member of sprite 47 to member "CCSGBanner" of castLib languagechosen
- set the ink of sprite 47 to 36
- set the locH of sprite 47 to 6
- set the locV of sprite 47 to 456
- puppetSprite(4, 1)
- puppetSprite(5, 1)
- puppetSprite(6, 1)
- puppetSprite(7, 1)
- puppetSprite(8, 1)
- puppetSprite(15, 1)
- puppetSprite(16, 1)
- puppetSprite(17, 1)
- puppetSprite(18, 1)
- puppetSprite(19, 1)
- puppetSprite(20, 1)
- puppetSprite(21, 1)
- puppetSprite(22, 1)
- puppetSprite(23, 1)
- puppetSprite(24, 1)
- puppetSprite(25, 1)
- puppetSprite(26, 1)
- puppetSprite(27, 1)
- puppetSprite(28, 1)
- puppetSprite(29, 1)
- puppetSprite(30, 1)
- puppetSprite(31, 1)
- puppetSprite(32, 1)
- puppetSprite(33, 1)
- puppetSprite(34, 1)
- puppetSprite(35, 1)
- puppetSprite(36, 1)
- puppetSprite(37, 1)
- puppetSprite(38, 1)
- puppetSprite(39, 1)
- puppetSprite(47, 1)
- end
-
- on stopMovie
- global gLastMovie, gLastFrame, gWindowHandle
- set gLastMovie to the movieName
- set gLastFrame to the frame
- puppetSprite(41, 0)
- puppetSprite(42, 0)
- puppetSprite(43, 0)
- puppetSprite(44, 0)
- puppetSprite(45, 0)
- puppetSprite(46, 0)
- puppetSprite(48, 0)
- end
-
- on playmovie position
- global gDevType, gMoovName, gWindowHandle, movieName, novideo
- if novideo = 0 then
- cursor(4)
- set movieName to the pathName & "stains.avi"
- mci("open" && movieName && "alias movie type AVIVideo style child parent " && gWindowHandle(mGetActive))
- if the result <> 1 then
- set novideo to 1
- else
- mci("put movie window at " & the stageLeft + 278 & " " & the stageTop + 32 & " 240 180")
- mci("play movie from " & position)
- end if
- cursor(0)
- end if
- end
-
- on ContentsStart
- global restartposition
- if the frame = 4 then
- set the movieRate of sprite 9 to 0
- set the visible of sprite 9 to 0
- end if
- end
-
- on ContentsStop
- global restartposition
- if the frame = 4 then
- set the movieRate of sprite 9 to 1
- set the visible of sprite 9 to 1
- end if
- end
-