home *** CD-ROM | disk | FTP | other *** search
/ PC Home 49 / PC_Home_Issue_49.iso / winprogs / childenc / oecdemo / mandela.dir / 00026.ls < prev    next >
Encoding:
Text File  |  1996-07-24  |  1.1 KB  |  43 lines

  1. on mouseDown
  2.   global movieDuration, therange, currAudio
  3.   put the puppet of sprite 8
  4.   set me to the clickOn
  5.   set the puppet of sprite me to 1
  6.   set the immediate of sprite me to 1
  7.   if the castNum of sprite me = 596 then
  8.     set the castNum of sprite me to 597
  9.     repeat while the mouseDown
  10.       updateStage()
  11.     end repeat
  12.     if not rollOver(11) then
  13.       set the castNum of sprite me to 596
  14.       updateStage()
  15.       exit
  16.     end if
  17.     set the castNum of sprite me to 597
  18.     puppetSprite(12, 1)
  19.     updateStage()
  20.     go(marker(0) + 7)
  21.     updateStage()
  22.     puppetSprite(8, 1)
  23.     set the movieRate of sprite 8 to 1
  24.   else
  25.     if the castNum of sprite me = 597 then
  26.       set the castNum of sprite me to 598
  27.       repeat while the mouseDown
  28.         updateStage()
  29.       end repeat
  30.       if not rollOver(11) then
  31.         set the castNum of sprite me to 597
  32.         updateStage()
  33.         exit
  34.       end if
  35.       set the castNum of sprite me to 596
  36.       if the castType of cast the castNum of sprite 8 = #digitalVideo then
  37.         set the movieRate of sprite 8 to 0
  38.       end if
  39.       updateStage()
  40.     end if
  41.   end if
  42. end
  43.