home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global gBaseURL, gReadyToGo
- set gBaseURL to "../"
- set gReadyToGo to 0
- set the randomSeed to the ticks
- set pCursor to the number of member "pointing"
- set the cursor of sprite 6 to [pCursor, pCursor + 1]
- set the cursor of sprite 19 to [pCursor, pCursor + 1]
- pass()
- end
-
- on getLoadID theMovie
- PreloadNetThing(theMovie)
- set CurrID to GetLatestNetID()
- return CurrID
- end
-
- on waitForTicks theTicks
- set startTime to the timer
- repeat while (startTime + theTicks) > the timer
- nothing()
- end repeat
- end
-
- on goMovie theMovie
- global gPreloadingOn, gBaseURL, gReadyToGo
- if not (theMovie contains ".dcr") then
- set theMovie to theMovie & ".dcr"
- end if
- set fadeDuration to 200
- if soundBusy(1) or soundBusy(2) then
- set lPlaying to 1
- end if
- if soundBusy(1) then
- sound fadeOut 1, fadeDuration
- end if
- if soundBusy(2) then
- sound fadeOut 2, fadeDuration
- end if
- if lPlaying = 1 then
- waitForTicks(fadeDuration)
- end if
- set gReadyToGo to 1
- GoToNetMovie(theMovie)
- end
-
- on goPage thePage
- global gReadyToGo
- set fadeDuration to 20
- if soundBusy(1) or soundBusy(2) then
- set lPlaying to 1
- end if
- if soundBusy(1) then
- sound fadeOut 1, fadeDuration
- end if
- if soundBusy(2) then
- sound fadeOut 2, fadeDuration
- end if
- updateStage()
- if lPlaying = 1 then
- waitForTicks(fadeDuration)
- end if
- set gReadyToGo to 1
- goToNetPage(thePage)
- end
-
- on enterFrame
- checkCycle()
- end
-
- on getFileName theURL
- repeat with i = the number of chars in theURL down to 1
- if (char i of theURL = "/") or (char i of theURL = ":") then
- set rVal to char i + 1 to the number of chars in theURL of theURL
- exit repeat
- end if
- end repeat
- return rVal
- end
-
- on checkCycle
- global gRealClick, gForeCol, gCycCol
- if gRealClick then
- if the mouseDown then
- set the foreColor of sprite gRealClick to random(256) - 1
- updateStage()
- else
- set the foreColor of sprite gRealClick to gForeCol
- updateStage()
- set gRealClick to 0
- end if
- end if
- end
-