home *** CD-ROM | disk | FTP | other *** search
- global gVideoPath
-
- on SetBetVideo nr
- global gLastBetVideo
- if voidp(nr) then
- set nr to gLastBetVideo
- end if
- set gLastBetVideo to nr
- set fname to the fileName of cast "WettVideo"
- if nr < 10 then
- set fname to "0" & nr
- else
- set fname to string(nr)
- end if
- set fname to gVideoPath & "Wette" & fname & ".avi"
- if fname <> the fileName of cast "WettVideo" then
- set the fileName of cast "WettVideo" to fname
- preLoadCast("WettVideo")
- end if
- end
-
- on StopBetVideo
- set the movieTime of sprite 36 to 1
- set the movieRate of sprite 36 to 0
- set the visible of sprite 25 to 0
- set the visible of sprite 26 to 0
- SpriteCursor([36, 37], ["CursorFinger", "CursorFingerMask"])
- SpriteCursor(38, 0)
- end
-
- on KickBetVideo
- set the visible of sprite 25 to 0
- set the visible of sprite 26 to 0
- set the visible of sprite 36 to 0
- set the movieRate of sprite 36 to 0
- set the movieTime of sprite 36 to 1
- SpriteCursor([36, 37, 38], 0)
- unLoad("WettVideo")
- set the fileName of cast "WettVideo" to "QuickVid\dummy.avi"
- end
-
- on wettnr klick
- return ((the frame - label("Seitenauswahl")) * 4) + klick
- end
-
- on Wettseite nr
- global gWetten, gHighScores, gNoPlayers
- KickBetVideo()
- repeat with i in [3, 4, 5, 6]
- set the visible of sprite i to 0
- end repeat
- updateStage()
- go(nr)
- repeat with i in [25, 26, 36]
- set the visible of sprite i to 0
- end repeat
- repeat with i = 1 to 4
- set the visible of sprite (20 + i) to getOne(gWetten, wettnr(i)) > 0
- end repeat
- SpriteCursor([36, 37, 38], 0)
- updateStage()
- end
-