home *** CD-ROM | disk | FTP | other *** search
/ What PC? 1996 August / WPCAUG96.ISO / artwaug.dxr / 00021_ARTVideo.ls < prev    next >
Encoding:
Text File  |  1996-06-17  |  3.7 KB  |  103 lines

  1. on ARTVideo
  2.   global ARTVidList, ARTVidOne, ARTVidTwo
  3.   repeat with a = 1 to count(ARTVidList)
  4.     set WhichButtons to getAt(getAt(ARTVidList, a), 1)
  5.     repeat with d = 1 to count(WhichButtons)
  6.       if rollOver(getAt(WhichButtons, d)) then
  7.         if (getAt(getAt(ARTVidList, a), 2) = 0) and (getAt(getAt(ARTVidList, a), 3) = 0) then
  8.           repeat with c = 1 to count(WhichButtons)
  9.             set the castNum of sprite getAt(WhichButtons, c) to the castNum of sprite getAt(WhichButtons, c) + 1
  10.           end repeat
  11.           updateStage()
  12.           setAt(getAt(ARTVidList, a), 2, 1)
  13.         end if
  14.         if the mouseDown then
  15.           repeat with x = 1 to count(ARTVidList)
  16.             if x <> a then
  17.               if getAt(getAt(ARTVidList, x), 3) = 1 then
  18.                 set WhichButtonsTwo to getAt(getAt(ARTVidList, x), 1)
  19.                 repeat with c = 1 to count(WhichButtonsTwo)
  20.                   set the castNum of sprite getAt(WhichButtonsTwo, c) to the castNum of sprite getAt(WhichButtonsTwo, c) - 1
  21.                 end repeat
  22.                 updateStage()
  23.                 setAt(getAt(ARTVidList, x), 3, 0)
  24.                 setAt(getAt(ARTVidList, x), 2, 0)
  25.               end if
  26.             end if
  27.           end repeat
  28.           setAt(getAt(ARTVidList, a), 3, 1)
  29.         end if
  30.       end if
  31.       set NoLowlight to 0
  32.       repeat with z = 1 to count(WhichButtons)
  33.         if rollOver(getAt(WhichButtons, z)) then
  34.           set NoLowlight to 1
  35.         end if
  36.       end repeat
  37.       if NoLowlight = 0 then
  38.         if (getAt(getAt(ARTVidList, a), 3) = 0) and (getAt(getAt(ARTVidList, a), 2) = 1) then
  39.           repeat with c = 1 to count(WhichButtons)
  40.             set the castNum of sprite getAt(WhichButtons, c) to the castNum of sprite getAt(WhichButtons, c) - 1
  41.           end repeat
  42.           updateStage()
  43.           setAt(getAt(ARTVidList, a), 2, 0)
  44.         end if
  45.       end if
  46.     end repeat
  47.     if getAt(getAt(ARTVidList, a), 3) = 1 then
  48.       if a = 1 then
  49.         set the video of member "test" to 1
  50.         set the castNum of sprite 30 to 274
  51.         set the locH of sprite 30 to 319
  52.         set the locV of sprite 30 to 211
  53.         updateStage()
  54.         set the movieRate of sprite 30 to 1
  55.       else
  56.         if the type of member the member of sprite 30 = #digitalVideo then
  57.           set the movieRate of sprite 30 to 0
  58.           set the video of member "test" to 0
  59.           updateStage()
  60.         end if
  61.       end if
  62.     end if
  63.     if (the mouseH > 552) and (the mouseH < 579) and (the mouseV > 75) and (the mouseV < 108) then
  64.       if ARTVidOne = 0 then
  65.         set ARTVidOne to 1
  66.         set the castNum of sprite 48 to 301
  67.         set the locH of sprite 48 to 200
  68.         set the locV of sprite 48 to 400
  69.         set the ink of sprite 36 to 36
  70.         set the castNum of sprite 36 to 259
  71.         set the locH of sprite 36 to 300
  72.         set the locV of sprite 36 to 200
  73.         updateStage()
  74.       end if
  75.     else
  76.       if ARTVidOne = 1 then
  77.         set ARTVidOne to 0
  78.         set the locH of sprite 48 to 2000
  79.         set the locH of sprite 36 to 2000
  80.       end if
  81.     end if
  82.     if (the mouseH > 552) and (the mouseH < 579) and (the mouseV > 115) and (the mouseV < 151) then
  83.       if ARTVidTwo = 0 then
  84.         set ARTVidTwo to 1
  85.         set the castNum of sprite 48 to 302
  86.         set the locH of sprite 48 to 200
  87.         set the locV of sprite 48 to 400
  88.         set the ink of sprite 36 to 36
  89.         set the castNum of sprite 36 to 260
  90.         set the locH of sprite 36 to 300
  91.         set the locV of sprite 36 to 200
  92.         updateStage()
  93.       end if
  94.       next repeat
  95.     end if
  96.     if ARTVidTwo = 1 then
  97.       set ARTVidTwo to 0
  98.       set the locH of sprite 48 to 2000
  99.       set the locH of sprite 36 to 2000
  100.     end if
  101.   end repeat
  102. end
  103.