home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 September / macformat-028.iso / mac / Demos / UNZIP-DEMO / ZIPFILES / cp00 / 00100.ls < prev    next >
Encoding:
Text File  |  1995-05-24  |  3.1 KB  |  144 lines

  1. on mroll
  2.   global cp
  3.   if the mouseCast = the castNum of sprite 10 then
  4.     go("music")
  5.   end if
  6.   if the mouseCast = the castNum of sprite 11 then
  7.     go("games")
  8.   end if
  9.   if the mouseCast = the castNum of sprite 12 then
  10.     go("video")
  11.   end if
  12.   if the mouseCast = the castNum of sprite 13 then
  13.     go("film")
  14.   end if
  15. end
  16.  
  17. on mroll1
  18.   global cp
  19.   if the mouseCast = the castNum of sprite 11 then
  20.     go("games")
  21.   end if
  22.   if the mouseCast = the castNum of sprite 12 then
  23.     go("video")
  24.   end if
  25.   if the mouseCast = the castNum of sprite 13 then
  26.     go("film")
  27.   end if
  28.   set cp to 0
  29.   if the mouseCast <> the castNum of sprite 10 then
  30.     set cp to cp + 1
  31.   end if
  32.   if the mouseCast <> the castNum of sprite 11 then
  33.     set cp to cp + 1
  34.   end if
  35.   if the mouseCast <> the castNum of sprite 12 then
  36.     set cp to cp + 1
  37.   end if
  38.   if the mouseCast <> the castNum of sprite 13 then
  39.     set cp to cp + 1
  40.   end if
  41.   if the mouseCast <> the castNum of sprite 15 then
  42.     set cp to cp + 1
  43.   end if
  44.   if cp = 5 then
  45.     go("ball2")
  46.   end if
  47. end
  48.  
  49. on mroll2
  50.   global cp
  51.   if the mouseCast = the castNum of sprite 10 then
  52.     go("music")
  53.   end if
  54.   if the mouseCast = the castNum of sprite 12 then
  55.     go("video")
  56.   end if
  57.   if the mouseCast = the castNum of sprite 13 then
  58.     go("film")
  59.   end if
  60.   set cp to 0
  61.   if the mouseCast <> the castNum of sprite 10 then
  62.     set cp to cp + 1
  63.   end if
  64.   if the mouseCast <> the castNum of sprite 11 then
  65.     set cp to cp + 1
  66.   end if
  67.   if the mouseCast <> the castNum of sprite 12 then
  68.     set cp to cp + 1
  69.   end if
  70.   if the mouseCast <> the castNum of sprite 13 then
  71.     set cp to cp + 1
  72.   end if
  73.   if the mouseCast <> the castNum of sprite 15 then
  74.     set cp to cp + 1
  75.   end if
  76.   if cp = 5 then
  77.     go("ball3")
  78.   end if
  79. end
  80.  
  81. on mroll3
  82.   global cp
  83.   if the mouseCast = the castNum of sprite 10 then
  84.     go("music")
  85.   end if
  86.   if the mouseCast = the castNum of sprite 11 then
  87.     go("games")
  88.   end if
  89.   if the mouseCast = the castNum of sprite 13 then
  90.     go("film")
  91.   end if
  92.   set cp to 0
  93.   if the mouseCast <> the castNum of sprite 10 then
  94.     set cp to cp + 1
  95.   end if
  96.   if the mouseCast <> the castNum of sprite 11 then
  97.     set cp to cp + 1
  98.   end if
  99.   if the mouseCast <> the castNum of sprite 12 then
  100.     set cp to cp + 1
  101.   end if
  102.   if the mouseCast <> the castNum of sprite 13 then
  103.     set cp to cp + 1
  104.   end if
  105.   if the mouseCast <> the castNum of sprite 15 then
  106.     set cp to cp + 1
  107.   end if
  108.   if cp = 5 then
  109.     go("ball4")
  110.   end if
  111. end
  112.  
  113. on mroll4
  114.   global cp
  115.   if the mouseCast = the castNum of sprite 10 then
  116.     go("music")
  117.   end if
  118.   if the mouseCast = the castNum of sprite 11 then
  119.     go("games")
  120.   end if
  121.   if the mouseCast = the castNum of sprite 12 then
  122.     go("video")
  123.   end if
  124.   set cp to 0
  125.   if the mouseCast <> the castNum of sprite 10 then
  126.     set cp to cp + 1
  127.   end if
  128.   if the mouseCast <> the castNum of sprite 11 then
  129.     set cp to cp + 1
  130.   end if
  131.   if the mouseCast <> the castNum of sprite 12 then
  132.     set cp to cp + 1
  133.   end if
  134.   if the mouseCast <> the castNum of sprite 13 then
  135.     set cp to cp + 1
  136.   end if
  137.   if the mouseCast <> the castNum of sprite 15 then
  138.     set cp to cp + 1
  139.   end if
  140.   if cp = 5 then
  141.     go("loop")
  142.   end if
  143. end
  144.