home *** CD-ROM | disk | FTP | other *** search
- on LocalStartMovie
- global gSpecNav
- set gSpecNav to 1
- HideRandoms()
- set the visible of sprite 28 to 0
- set the visible of sprite 29 to 0
- set the visible of sprite 30 to 0
- HideAudioControls()
- end
-
- on SpecialNavigation
- global theSpriteList, nowPlaying, gDirection
- if nowPlaying = 1 then
- CleanUpZappedText()
- ExitVideoThirty()
- CleanUpZappedSound()
- end if
- if integer(gDirection) = 4 then
- puppetSound("SETCLOCK.AIF")
- end if
- set nowPlaying to 0
- set theSpriteList to "4,5,6,7,8,9,10,11,12,13,14"
- ToggleSprites(theSpriteList, 0)
- end
-
- on DoSomeRandomShit
- global gMediaType, FileChoice, nowPlaying, CurMoovSprite, BGHolder, Char3
- set the soundEnabled to 0
- set the soundLevel to 7
- if nowPlaying = 1 then
- CleanUpMultiMedia()
- end if
- repeat with count = 29 to 31
- puppetSprite(count, 1)
- end repeat
- set holder to RandMedia("Video,Text,Geluid") & " " & Char3
- if holder contains "Video" then
- set gMediaType to "Moov"
- set nowPlaying to 1
- DispQTControls()
- set CurMoovSprite to 30
- end if
- if holder contains "Geluid" then
- set gMediaType to "Aiff"
- DispAudioControls()
- set nowPlaying to 1
- end if
- if holder contains "Text" then
- set gMediaType to "text"
- HideAudioControls()
- set nowPlaying to 1
- end if
- set rScriptToDo to holder
- do(rScriptToDo)
- set BGHolder to the castNum of sprite 29
- if soundBusy(1) then
- sound stop 1
- end if
- puppetSound(0)
- set the soundEnabled to 0
- setupRandomMedia()
- if gMediaType = "Moov" then
- DisplayVideo("same", FileChoice, 1, "none")
- set the volume of sprite integer(CurMoovSprite) to 256
- end if
- if gMediaType = "Aiff" then
- DisplayGeluidPup(EMPTY, FileChoice, 1, "none")
- set the soundLevel to 7
- end if
- if gMediaType = "Text" then
- set the text of cast "TextHolder" to the text of cast FileChoice
- set the visible of sprite 31 to 1
- end if
- end
-
- on CleanUpMultiMedia
- global nowPlaying, BGHolder
- set the castNum of sprite 29 to BGHolder
- set nowPlaying to 0
- set the visible of sprite 29 to 0
- if the visible of sprite 31 then
- CleanUpZappedText()
- end if
- if the visible of sprite 30 then
- CleanVidExit()
- end if
- CleanUpZappedSound()
- end
-
- on setupRandomMedia
- global gMediaType
- puppetSound(0)
- set the soundEnabled to 0
- if the castNum of sprite 30 <> 0 then
- if the castType of cast the name of cast the castNum of sprite 30 = #digitalVideo then
- set the volume of sprite 30 to 255
- end if
- end if
- end
-
- on CleanUpZappedText
- global FileChoice, gSoundLoop
- set gSoundLoop to EMPTY
- if voidp(FileChoice) then
- set FileChoice to "Text"
- end if
- puppetSound(0)
- puppetSprite(31, 0)
- set FileChoice to StripExt(FileChoice)
- if the last char in FileChoice = "a" then
- delete char the length of FileChoice of FileChoice
- if the last char in FileChoice = "." then
- delete char the length of FileChoice of FileChoice
- end if
- set FileChoice to FileChoice & ".b"
- set the text of cast "TextHolder" to the text of cast FileChoice
- updateStage()
- else
- set the visible of sprite 31 to 0
- end if
- end
-