home *** CD-ROM | disk | FTP | other *** search
- global gSprite, gOrigVolume, gCurrentVolume, gCurrentSong, gPrevSong, gOrigColor, gClickFlag, gRW
-
- on startMovie
- if not (the colorDepth) = 8 then
- set gOrigColor to the colorDepth
- set the colorDepth to 8
- end if
- set gOrigVolume to the soundLevel
- set the soundLevel to 4
- set gCurrentVolume to 4
- set gSprite to 0
- set gCurrentSong to " "
- put " " into field "songText"
- set gPrevSong to " "
- preLoad(1, 110)
- if not (the machineType = 256) then
- initRearWindow()
- end if
- end
-
- on initRearWindow
- if objectp(gRW) then
- gRW(mdispose)
- end if
- openXLib(the pathName & "rearwindow.xobj")
- set gRW to RearWindow(mnew, "M")
- put gRW
- gRW(mPatToWindow, -5)
- end
-
- on stopSong
- puppetSound(0)
- sound stop 1
- set the castNum of sprite gSprite to the number of cast "dim button"
- set the castNum of sprite (gSprite + 10) to the number of cast (gCurrentSong & " Lo")
- updateStage()
- end
-
- on waitMusic howLong
- if the timer < howLong then
- go(the frame)
- end if
- end
-
- on playSong theSong
- unLoad()
- if soundBusy(1) then
- stopSong()
- end if
- set gSprite to the clickOn
- puppetSound("click")
- set the castNum of sprite gSprite to the number of cast "hilite button"
- updateStage()
- set the locH of sprite gSprite to the locH of sprite gSprite + 1
- set the locV of sprite gSprite to the locV of sprite gSprite + 1
- updateStage()
- set the castNum of sprite (gSprite + 10) to the number of cast (theSong & " Hi")
- set gCurrentSong to theSong
- repeat while soundBusy(1)
- end repeat
- put "now loading..." into field "songText"
- puppetSound(theSong)
- updateStage()
- repeat while the stillDown
- if rollOver(gSprite) = 0 then
- exit
- end if
- end repeat
- set the locH of sprite gSprite to the locH of sprite gSprite - 1
- set the locV of sprite gSprite to the locV of sprite gSprite - 1
- updateStage()
- put the text of field (theSong & "Text") into field "songText"
- go("play test")
- end
-
- on turnOffSprite
- set the castNum of sprite gSprite to the number of cast "dim button"
- set the castNum of sprite (gSprite + 10) to the number of cast (gCurrentSong & " Lo")
- updateStage()
- end
-
- on stopIntro
- sound fadeOut 1, 90
- set gClickFlag to 1
- go("endIntro")
- end
-
- on stopMovie
- if not (the machineType) = 256 then
- if objectp(gRW) then
- gRW(mdispose)
- end if
- end if
- set the soundLevel to gOrigVolume
- if not voidp(gOrigColor) then
- set the colorDepth to gOrigColor
- end if
- end
-