home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global theCoord, visitList, startTime, firstTime, gPath
- cursor(200)
- set the keyDownScript to EMPTY
- setPath("home")
- if not voidp(visitList) then
- set r to random(3)
- sound playFile 3, "arrange" & r & ".aif"
- end if
- preLoadCast()
- repeat with i = 4 to 40
- puppetSprite(i, 1)
- end repeat
- puppetSprite(42, 1)
- set the visible of sprite 42 to 0
- set the stretch of sprite 42 to 0
- set the castNum of sprite 39 to 0
- set startTime to the ticks / 60
- if voidp(firstTime) then
- set firstTime to 1
- else
- set firstTime to 0
- end if
- set theCoord to birth(script "coordinator")
- set the timeoutLength to 240
- set the timeoutScript to "activateBol theCoord"
- end
-
- on stopMovie
- sound stop 1
- sound stop 2
- sound stop 3
- sound stop 4
- set the keyDownScript to EMPTY
- killPath("home")
- end
-
- on setPath module
- global gPath, gCDPath
- if gCDPath <> gPath then
- if the machineType = 256 then
- append(the searchPath, gCDPath & module & "\")
- else
- append(the searchPath, gCDPath & module & ":")
- end if
- end if
- end
-
- on killPath module
- global gPath, gCDPath
- if gCDPath <> gPath then
- if the machineType = 256 then
- set pos to getPos(the searchPath, gCDPath & module & "\")
- else
- set pos to getPos(the searchPath, gCDPath & module & ":")
- end if
- if pos > 0 then
- deleteAt(the searchPath, pos)
- end if
- end if
- end
-