home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct02090.geo / 00025.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  3.2 KB  |  141 lines

  1. on startMovie
  2.   Set_CDcounter(8)
  3.   initLesson()
  4.   CheckForTagWd()
  5.   Set_NEXT(1)
  6.   set_TimerLen(60 * 3)
  7.   set the puppet of sprite 32 to 1
  8. end
  9.  
  10. on InitLamp
  11.   set the visible of sprite 33 to 0
  12.   UpdateCursors(33, 0)
  13.   set the castNum of sprite 32 to the number of cast "lamp_Off"
  14. end
  15.  
  16. on set_TimerLen int
  17.   global TimerLen
  18.   set TimerLen to int
  19. end
  20.  
  21. on get_TimerLen
  22.   global TimerLen
  23.   return TimerLen
  24. end
  25.  
  26. on TheinitCursor
  27.   initCursorCastNum()
  28.   initCursorList(1)
  29.   set CursorCastNum to getCursor(2)
  30.   cursor([CursorCastNum, CursorCastNum + 1])
  31. end
  32.  
  33. on BlinkNext
  34.   if (the timer > getTimer()) and not soundBusy(2) then
  35.     startTimer()
  36.     if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
  37.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
  38.     else
  39.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  40.     end if
  41.   end if
  42. end
  43.  
  44. on checkScreenStatus
  45.   CheckRollOver()
  46.   CheckSnakeStatus()
  47.   go(the frame)
  48. end
  49.  
  50. on PressBtn theBtn
  51.   Set_PressedLast(theBtn)
  52.   switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
  53. end
  54.  
  55. on GoNext
  56.   if not get_Disabled() then
  57.     sound stop 2
  58.     if Get_NEXT() = 1 then
  59.       go("t1+")
  60.     else
  61.       if Get_NEXT() = 2 then
  62.         go("t1")
  63.       else
  64.         if Get_NEXT() = 3 then
  65.           go("t2")
  66.         else
  67.           if Get_NEXT() = 4 then
  68.             go("t3")
  69.           else
  70.             if Get_NEXT() = 5 then
  71.               UpdateCursors(17, 0)
  72.               go("t4")
  73.             else
  74.               if Get_NEXT() = 6 then
  75.                 go("t5")
  76.               else
  77.                 if Get_NEXT() = 7 then
  78.                   go("t5-animation")
  79.                 else
  80.                   if Get_NEXT() = 8 then
  81.                     go("t6")
  82.                   else
  83.                     if Get_NEXT() = 9 then
  84.                       go("t6-animation")
  85.                     else
  86.                       if Get_NEXT() = 10 then
  87.                         go("t7")
  88.                       else
  89.                         if Get_NEXT() = 11 then
  90.                           go("t7-blink")
  91.                         else
  92.                           UpdateCursors(23, 0)
  93.                           GoNextMovie()
  94.                           exit
  95.                         end if
  96.                       end if
  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 if
  106.     Set_NEXT(Get_NEXT() + 1)
  107.   end if
  108. end
  109.  
  110. on stopMovie
  111.   sound stop 1
  112.   unLoad()
  113.   setEmptyCursor()
  114. end
  115.  
  116. on GoNextMovie
  117.   PlaySound("GOSOUND.SO1")
  118.   SaveHilite()
  119.   Add_CDcounter(1)
  120.   set cdNum to Get_CDcounter()
  121.   set movieName to item cdNum of Get_CurrentSnakeScreens()
  122.   go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
  123. end
  124.  
  125. on HandleLamp
  126.   if the name of cast the castNum of sprite 32 = "lamp_On" then
  127.     sound stop 2
  128.     set the castNum of sprite 32 to the number of cast "lamp_Off"
  129.     set the visible of sprite 33 to 0
  130.     UpdateCursors(33, 0)
  131.     continue()
  132.   else
  133.     set the castNum of sprite 32 to the number of cast "lamp_On"
  134.     UpdateCursors(33, 3)
  135.     set the visible of sprite 33 to 1
  136.     pause()
  137.     PlaySound("NCT02090.T01")
  138.   end if
  139.   updateStage()
  140. end
  141.