home *** CD-ROM | disk | FTP | other *** search
/ 75 Years of the BBC - Sound On Vision On / BBC.iso / pc / 75yrs / globe.dxr / Internal_56.ls < prev    next >
Encoding:
Text File  |  1997-08-21  |  3.7 KB  |  127 lines

  1. global gvideomovie
  2.  
  3. on showvol
  4.   if the mouseH < 465 then
  5.     if the name of member the memberNum of sprite 11 of castLib "assets" <> "dot" then
  6.       cursor(4)
  7.       set the memberNum of sprite 12 to member "dot" of castLib "assets"
  8.       repeat with mysp = 64 down to 61
  9.         set the memberNum of sprite 11 to member mysp of castLib "assets"
  10.         set the memberNum of sprite 12 to member (mysp + 4) of castLib "assets"
  11.         updateStage()
  12.         delaytime(0.02)
  13.       end repeat
  14.       set the memberNum of sprite 11 to member "dot" of castLib "assets"
  15.       updateStage()
  16.       cursor([member 17 of castLib "assets", member 18 of castLib "assets"])
  17.       puppetSprite(11, 0)
  18.       puppetSprite(12, 0)
  19.     end if
  20.   end if
  21.   if the mouseH > 495 then
  22.     puppetSprite(11, 1)
  23.     puppetSprite(12, 1)
  24.     if the name of member the memberNum of sprite 11 of castLib "assets" = "dot" then
  25.       cursor(4)
  26.       setvolpos()
  27.       repeat with mysp = 61 to 64
  28.         set the memberNum of sprite 11 to member mysp of castLib "assets"
  29.         set the memberNum of sprite 12 to member (mysp + 4) of castLib "assets"
  30.         updateStage()
  31.         delaytime(0.02)
  32.       end repeat
  33.       cursor([member 17 of castLib "assets", member 18 of castLib "assets"])
  34.     end if
  35.   end if
  36.   if overvol() then
  37.     set volover to 1
  38.   end if
  39.   if the mouseDown = 1 then
  40.     if volover = 1 then
  41.       repeat while the mouseDown
  42.         set the locV of sprite 12 to the mouseV
  43.         if the locV of sprite 12 <= 157 then
  44.           set the locV of sprite 12 to 157
  45.         end if
  46.         if the locV of sprite 12 >= 339 then
  47.           set the locV of sprite 12 to 339
  48.         end if
  49.         updateStage()
  50.       end repeat
  51.       dovol()
  52.       updateStage()
  53.     end if
  54.   end if
  55. end
  56.  
  57. on overvol
  58.   if rollOver(12) = 1 then
  59.     return 1
  60.   else
  61.     return 0
  62.   end if
  63. end
  64.  
  65. on dovol
  66.   if (the locV of sprite 12 >= 157) and (the locV of sprite 12 < 170) then
  67.     set the locV of sprite 12 to 157
  68.     set the soundLevel to 7
  69.   else
  70.     if (the locV of sprite 12 >= 170) and (the locV of sprite 12 <= 196) then
  71.       set the locV of sprite 12 to 183
  72.       set the soundLevel to 6
  73.     else
  74.       if (the locV of sprite 12 >= 196) and (the locV of sprite 12 <= 222) then
  75.         set the locV of sprite 12 to 209
  76.         set the soundLevel to 5
  77.       else
  78.         if (the locV of sprite 12 >= 222) and (the locV of sprite 12 <= 248) then
  79.           set the locV of sprite 12 to 235
  80.           set the soundLevel to 4
  81.         else
  82.           if (the locV of sprite 12 >= 248) and (the locV of sprite 12 <= 279) then
  83.             set the locV of sprite 12 to 261
  84.             set the soundLevel to 3
  85.           else
  86.             if (the locV of sprite 12 >= 279) and (the locV of sprite 12 <= 300) then
  87.               set the locV of sprite 12 to 287
  88.               set the soundLevel to 2
  89.             else
  90.               if (the locV of sprite 12 >= 300) and (the locV of sprite 12 <= 326) then
  91.                 set the locV of sprite 12 to 313
  92.                 set the soundLevel to 1
  93.               else
  94.                 if (the locV of sprite 12 >= 326) and (the locV of sprite 12 <= 339) then
  95.                   set the locV of sprite 12 to 339
  96.                   set the soundLevel to 0
  97.                 end if
  98.               end if
  99.             end if
  100.           end if
  101.         end if
  102.       end if
  103.     end if
  104.   end if
  105. end
  106.  
  107. on setvolpos
  108.   case the soundLevel of
  109.     7:
  110.       set the locV of sprite 12 to 157
  111.     6:
  112.       set the locV of sprite 12 to 183
  113.     5:
  114.       set the locV of sprite 12 to 209
  115.     4:
  116.       set the locV of sprite 12 to 235
  117.     3:
  118.       set the locV of sprite 12 to 261
  119.     2:
  120.       set the locV of sprite 12 to 287
  121.     1:
  122.       set the locV of sprite 12 to 313
  123.     0:
  124.       set the locV of sprite 12 to 339
  125.   end case
  126. end
  127.