home *** CD-ROM | disk | FTP | other *** search
- on rollmenu anfang, ende, zeiger
- repeat with n = anfang to ende
- if rollOver(n) then
- puppetSprite(zeiger, 1)
- set the locV of sprite zeiger to the locV of sprite n
- updateStage()
- end if
- end repeat
- end
-
- on load movie
- global mpath
- go(1, movie)
- end
-
- on loadsprache language
- global sprache
- puppetSound("klick")
- set sprache to language
- set mpath to the moviePath & string(language) & "\"
- set movie to "main"
- go(1, mpath & movie)
- end
-
- on loadsprache2 movie
- global mpath
- puppetSound("klick")
- go(1, mpath & movie)
- end
-
- on loadFrame frame, movie
- puppetSound("klick")
- go(frame, movie)
- end
-
- on resetPuppet kanal
- puppetSprite(kanal, 0)
- updateStage()
- end
-
- on jumpinfo marker, sound
- ResetInvisible(12, 21)
- puppetSound(sound)
- go(marker)
- end
-
- on jump marker, sound
- puppetSound(sound)
- go(marker)
- end
-
- on jump2 marker
- puppetSound("klick")
- go(marker)
- end
-
- on wait n
- set the timer to 0
- repeat while the timer < n
- end repeat
- end
-
- on pausieren n
- global mH, mV
- set the timer to 0
- repeat while the timer < n
- pause()
- if (mH <> the mouseH) and (mV <> the mouseV) then
- exit repeat
- end if
- end repeat
- continue()
- end
-
- on GetPathComponent pathName
- global last, CompList
- set save to the itemDelimiter
- set the itemDelimiter to ":"
- set CompList to []
- repeat with n = 1 to 100
- if item n of the pathName = EMPTY then
- exit repeat
- end if
- append(CompList, item n of the pathName)
- set last to getAt(CompList, n)
- end repeat
- set the itemDelimiter to save
- return last
- end
-
- on GetPathWithoutLast moviepathname
- global mpath, CompList
- set mpath to EMPTY
- SaveOldPath()
- GetPathComponent()
- repeat with n = 1 to count(CompList) - 1
- set mpath to mpath & getAt(CompList, n) & ":"
- end repeat
- return mpath
- end
-
- on SaveOldPath
- global oldPath
- set oldPath to the moviePath
- end
-