home *** CD-ROM | disk | FTP | other *** search
/ 1&1 Multimedia Trend 1996 11 B / MM_TREND.ISO / prog / t_online / shared.dir / 00301.ls < prev    next >
Encoding:
Text File  |  1996-09-18  |  2.4 KB  |  143 lines

  1. on Fehler Nr, Info
  2.   global CrLf
  3.   set text to Info
  4.   if Nr = 101 then
  5.     put "Modul: utility nicht vorhanden"
  6.   end if
  7.   if Nr = 102 then
  8.     put "Modul: fileio nicht vorhanden"
  9.   end if
  10.   alert("Fehler: " & Nr & CrLf & text)
  11. end
  12.  
  13. on debug text
  14. end
  15.  
  16. on WaitTicks Anz
  17.   set myTicks to the ticks + Anz
  18.   repeat while the ticks < myTicks
  19.   end repeat
  20. end
  21.  
  22. on PlayMusic x
  23.   global giMusic
  24.   if giMusic > 0 then
  25.     if not soundBusy(1) then
  26.       puppetSound(0)
  27.       puppetSound(x)
  28.     end if
  29.   end if
  30. end
  31.  
  32. on PlayNoise x
  33.   global giNoise
  34.   if giNoise > 0 then
  35.     puppetSound(x)
  36.   end if
  37. end
  38.  
  39. on StopThatSound
  40.   global giMovieNr
  41.   if soundBusy(1) then
  42.     sound stop 1
  43.   end if
  44.   if soundBusy(2) then
  45.     sound stop 2
  46.   end if
  47.   if giMovieNr > 0 then
  48.     set giMovieNr to 0
  49.   end if
  50. end
  51.  
  52. on busywait secs
  53.   global gbQuitWait
  54.   set blink to the ticks
  55.   set Anz to secs * 60
  56.   set myTicks to the ticks + Anz
  57.   repeat while the ticks < myTicks
  58.     CheckMyRollover()
  59.     if the ticks > (blink + 10) then
  60.       Myidle()
  61.       set blink to the ticks
  62.     end if
  63.     if gbQuitWait = 1 then
  64.       exit repeat
  65.     end if
  66.   end repeat
  67.   set gbQuitWait to 0
  68. end
  69.  
  70. on SoundWait Track
  71.   global gbQuitWait
  72.   if Track = 0 then
  73.     set Track to 2
  74.   end if
  75.   set blink to the ticks
  76.   repeat while soundBusy(Track)
  77.     CheckMyRollover()
  78.     Myidle()
  79.     if gbQuitWait then
  80.       exit repeat
  81.     end if
  82.   end repeat
  83. end
  84.  
  85. on MovieWait spn
  86.   global giMovieNr
  87.   set giMovieNr to spn
  88.   set x to the castNum of sprite spn
  89.   set ty to the castType of cast x
  90.   set ok to 1
  91.   if x > 0 then
  92.     if ty = #digitalVideo then
  93.       repeat while ok
  94.         if giMovieNr > 0 then
  95.           set ok to the movieRate of sprite spn > 0
  96.         else
  97.           set ok to 0
  98.         end if
  99.         CheckMyRollover()
  100.         nothing()
  101.         nothing()
  102.         Myidle()
  103.       end repeat
  104.     end if
  105.   end if
  106.   set giMovieNr to 0
  107. end
  108.  
  109. on IncBsi
  110.   global giBsIndex
  111. end
  112.  
  113. on jump x
  114.   global gsGoFrame, gbGoto, giAuto, glgotoListe
  115.   if giAuto = 0 then
  116.     set gsGoFrame to getAt(glgotoListe, 2)
  117.     set gbGoto to 1
  118.     cursor(4)
  119.   else
  120.     StopThatSound()
  121.     set gsGoFrame to getAt(glgotoListe, 5)
  122.     set gbGoto to 1
  123.     cursor(4)
  124.   end if
  125.   Myidle()
  126. end
  127.  
  128. on QuitMovie
  129.   global gbISDN
  130.   if the movieName contains "MENU" then
  131.     go("Ende")
  132.     exit
  133.   else
  134.     if gbISDN = 1 then
  135.       set x to "Menu_I"
  136.     else
  137.       set x to "Menu_O"
  138.     end if
  139.     go("Ende", x)
  140.     exit
  141.   end if
  142. end
  143.