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

  1. on hauptroll var, var1
  2.   repeat with dummy = 0 to var1 - 1
  3.     if rollOver(17 + dummy) then
  4.       set the castNum of sprite (24 + dummy) to var + 1 + (dummy * 2)
  5.     end if
  6.     if (rollOver(17 + dummy) = 0) and (the castNum of sprite (24 + dummy) <> (var + (dummy * 2))) then
  7.       set the castNum of sprite (24 + dummy) to var + (dummy * 2)
  8.     end if
  9.   end repeat
  10.   updateStage()
  11. end
  12.  
  13. on counter
  14.   global count
  15.   set count to the timer
  16. end
  17.  
  18. on nopuppet
  19.   repeat with dummy = 1 to 48
  20.     set the puppet of sprite dummy to 0
  21.   end repeat
  22. end
  23.  
  24. on cur var1, var2, var3
  25.   if var1 <> 0 then
  26.     repeat with dummy = 0 to var1 - 1
  27.       set the cursor of sprite (17 + dummy) to [1914, 1915]
  28.     end repeat
  29.   end if
  30.   if var2 <> 0 then
  31.     repeat with dummy = 0 to var2 - 1
  32.       set the cursor of sprite (48 - dummy) to [1914, 1915]
  33.     end repeat
  34.   end if
  35.   if var3 <> 0 then
  36.     repeat with dummy = 0 to var3 - 1
  37.       set the cursor of sprite (37 + dummy) to [1914, 1915]
  38.     end repeat
  39.   end if
  40. end
  41.  
  42. on nocur
  43.   repeat with dummy = 1 to 48
  44.     set the cursor of sprite dummy to 0
  45.   end repeat
  46.   r1()
  47. end
  48.  
  49. on ton
  50.   puppetSound("click")
  51.   updateStage()
  52.   puppetSound(0)
  53. end
  54.  
  55. on r1
  56.   if the castNum of sprite 7 <> 0 then
  57.     if the castType of cast the castNum of sprite 7 = #digitalVideo then
  58.       set the movieRate of sprite 7 to 1
  59.     end if
  60.   end if
  61. end
  62.  
  63. on r0
  64.   if the castNum of sprite 7 <> 0 then
  65.     if the castType of cast the castNum of sprite 7 = #digitalVideo then
  66.       set the movieRate of sprite 7 to 0
  67.     end if
  68.   end if
  69. end
  70.  
  71. on counter1
  72.   global count1
  73.   set count1 to the timer
  74. end
  75.  
  76. on blink var, var1
  77.   global count, count1, knopf, knopfrunter
  78.   if (count1 + 120) < the timer then
  79.     if (count + 5) < the timer then
  80.       if (the mouseDown = 0) and (var1 <> 0) then
  81.         if knopf = 0 then
  82.           set the castNum of sprite 9 to var1
  83.         end if
  84.         if knopf = 1 then
  85.           set the castNum of sprite 9 to 1904
  86.         end if
  87.       end if
  88.       if (knopf < (var + 1)) and (knopf <> 0) then
  89.         set the castNum of sprite (16 + knopf) to 1925
  90.       end if
  91.       if (knopf <> (var + 1)) and (knopf < 8) and (knopf > 1) then
  92.         set the castNum of sprite (16 + knopf - 1) to 1900
  93.       end if
  94.       if knopf = (var + 1) then
  95.         set the castNum of sprite (16 + knopf - 1) to 1900
  96.       end if
  97.       updateStage()
  98.       counter()
  99.       set knopf to knopf + 1
  100.       if knopf > (var + 1) then
  101.         set knopf to 0
  102.         counter1()
  103.       end if
  104.     end if
  105.   end if
  106.   if (knopfrunter = 1) and (the mouseDown = 0) then
  107.     if the clickOn <> 0 then
  108.       if rollOver(the clickOn) = 0 then
  109.         set knopfrunter to 0
  110.         nopuppet()
  111.         go(the frame)
  112.       end if
  113.     end if
  114.   end if
  115. end
  116.  
  117. on rightdown
  118.   set the puppet of sprite 8 to 1
  119.   set the puppet of sprite 9 to 1
  120.   set the castNum of sprite 9 to 1908
  121.   set the locH of sprite 8 to the locH of sprite 8 - 1
  122.   updateStage()
  123.   set the castNum of sprite 9 to 1909
  124.   set the locH of sprite 8 to the locH of sprite 8 - 1
  125.   updateStage()
  126.   set the castNum of sprite 9 to 1910
  127.   set the locH of sprite 8 to the locH of sprite 8 - 1
  128.   updateStage()
  129. end
  130.  
  131. on rightup
  132.   r0()
  133.   set the puppet of sprite 8 to 0
  134.   set the puppet of sprite 9 to 0
  135.   puppetSound("click")
  136.   set the castNum of sprite 9 to 1909
  137.   set the locH of sprite 8 to the locH of sprite 8 + 1
  138.   updateStage()
  139.   puppetSound(0)
  140.   set the castNum of sprite 9 to 1908
  141.   set the locH of sprite 8 to the locH of sprite 8 + 1
  142.   updateStage()
  143.   set the castNum of sprite 9 to 1904
  144.   set the locH of sprite 8 to the locH of sprite 8 + 1
  145.   updateStage()
  146. end
  147.  
  148. on leftdown
  149.   set the puppet of sprite 9 to 1
  150.   set the castNum of sprite 9 to 1905
  151.   updateStage()
  152.   set the castNum of sprite 9 to 1906
  153.   updateStage()
  154.   set the castNum of sprite 9 to 1907
  155.   updateStage()
  156. end
  157.  
  158. on leftup
  159.   r0()
  160.   set the puppet of sprite 9 to 0
  161.   set the castNum of sprite 9 to 1906
  162.   puppetSound("click")
  163.   updateStage()
  164.   puppetSound(0)
  165.   set the castNum of sprite 9 to 1905
  166.   updateStage()
  167.   set the castNum of sprite 9 to 1904
  168.   updateStage()
  169. end
  170.  
  171. on downdown
  172.   set the puppet of sprite 8 to 1
  173.   set the puppet of sprite 9 to 1
  174.   set the castNum of sprite 9 to 1911
  175.   set the locV of sprite 8 to the locV of sprite 8 - 1
  176.   updateStage()
  177.   set the castNum of sprite 9 to 1912
  178.   set the locV of sprite 8 to the locV of sprite 8 - 1
  179.   updateStage()
  180.   set the castNum of sprite 9 to 1913
  181.   set the locV of sprite 8 to the locV of sprite 8 - 1
  182.   updateStage()
  183. end
  184.  
  185. on downup
  186.   r0()
  187.   set the puppet of sprite 8 to 0
  188.   set the puppet of sprite 9 to 0
  189.   puppetSound("click")
  190.   set the castNum of sprite 9 to 1912
  191.   set the locV of sprite 8 to the locV of sprite 8 + 1
  192.   updateStage()
  193.   puppetSound(0)
  194.   set the castNum of sprite 9 to 1911
  195.   set the locV of sprite 8 to the locV of sprite 8 + 1
  196.   updateStage()
  197.   set the castNum of sprite 9 to 1904
  198.   set the locV of sprite 8 to the locV of sprite 8 + 1
  199.   updateStage()
  200. end
  201.  
  202. on knopfdown var, var1, var2
  203.   global knopfrunter
  204.   set knopfrunter to 1
  205.   if var < 16 then
  206.     set var to the clickOn
  207.   end if
  208.   if var1 < 23 then
  209.     set var1 to var + 7
  210.   end if
  211.   if var2 < 9 then
  212.     set var2 to var - 7
  213.   end if
  214.   set the locH of sprite var to the locH of sprite var + 1
  215.   set the locV of sprite var to the locV of sprite var + 1
  216.   set the locH of sprite var1 to the locH of sprite var1 + 1
  217.   set the locV of sprite var1 to the locV of sprite var1 + 1
  218.   updateStage()
  219.   set the locH of sprite var to the locH of sprite var + 1
  220.   set the locV of sprite var to the locV of sprite var + 1
  221.   set the locH of sprite var1 to the locH of sprite var1 + 1
  222.   set the locV of sprite var1 to the locV of sprite var1 + 1
  223.   updateStage()
  224. end
  225.  
  226. on knopfup var, var1, var2
  227.   global knopfrunter
  228.   if var < 16 then
  229.     set var to the clickOn
  230.   end if
  231.   if var1 < 23 then
  232.     set var1 to var + 7
  233.   end if
  234.   if var2 < 9 then
  235.     set var2 to var - 7
  236.   end if
  237.   if soundBusy(1) then
  238.     sound fadeOut 1, 20
  239.   end if
  240.   nopuppet()
  241.   puppetSound("click")
  242.   set the locH of sprite var to the locH of sprite var - 1
  243.   set the locV of sprite var to the locV of sprite var - 1
  244.   set the locH of sprite var1 to the locH of sprite var1 - 1
  245.   set the locV of sprite var1 to the locV of sprite var1 - 1
  246.   updateStage()
  247.   set the locH of sprite var to the locH of sprite var - 1
  248.   set the locV of sprite var to the locV of sprite var - 1
  249.   set the locH of sprite var1 to the locH of sprite var1 - 1
  250.   set the locV of sprite var1 to the locV of sprite var1 - 1
  251.   updateStage()
  252.   puppetSound(0)
  253.   set knopfrunter to 0
  254. end
  255.  
  256. on Change
  257.   startTimer()
  258.   repeat with dummy = 1 to 600
  259.     if (the fileName of cast dummy contains "english") or (the fileName of cast dummy contains "deutsch") then
  260.       set Bildname to the fileName of cast dummy
  261.       set anzahl to the number of chars in Bildname
  262.       set dummy1 to 0
  263.       repeat while char anzahl - dummy1 of Bildname <> ":"
  264.         set dummy1 to dummy1 + 1
  265.       end repeat
  266.       set dummy1 to dummy1 + 1
  267.       repeat while char anzahl - dummy1 of Bildname <> ":"
  268.         set dummy1 to dummy1 + 1
  269.       end repeat
  270.       if the fileName of cast dummy contains "deutsch" then
  271.         put "English" into char anzahl - dummy1 - 7 to anzahl - dummy1 - 1 of Bildname
  272.       end if
  273.       if the fileName of cast dummy contains "English" then
  274.         put "Deutsch" into char anzahl - dummy1 - 7 to anzahl - dummy1 - 1 of Bildname
  275.       end if
  276.       set the fileName of cast dummy to Bildname
  277.     end if
  278.   end repeat
  279.   put the timer
  280. end
  281.  
  282. on change1
  283.   startTimer()
  284.   repeat with dummy = 1 to 420
  285.     if (the fileName of cast dummy contains "english") or (the fileName of cast dummy contains "deutsch") then
  286.       set Bildname to the fileName of cast dummy
  287.       set anzahl to the number of chars in Bildname
  288.       set dummy1 to 0
  289.       repeat while char anzahl - dummy1 of Bildname <> ":"
  290.         set dummy1 to dummy1 + 1
  291.       end repeat
  292.       if the fileName of cast dummy contains "deutsch" then
  293.         put "English" into char anzahl - dummy1 - 7 to anzahl - dummy1 - 1 of Bildname
  294.       end if
  295.       if the fileName of cast dummy contains "English" then
  296.         put "Deutsch" into char anzahl - dummy1 - 7 to anzahl - dummy1 - 1 of Bildname
  297.       end if
  298.       set the fileName of cast dummy to Bildname
  299.     end if
  300.   end repeat
  301.   put the timer
  302. end
  303.  
  304. on welcheSeite
  305.   set Infotext to "Film: "
  306.   put the movieName after Infotext
  307.   put RETURN after Infotext
  308.   put "Seitennummer: " after Infotext
  309.   put the frame after Infotext
  310.   put RETURN after Infotext
  311.   if the frameLabel <> EMPTY then
  312.     put "Marker: " after Infotext
  313.     put the frameLabel after Infotext
  314.   end if
  315.   alert(Infotext)
  316. end
  317.