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

  1. on startMovie
  2.   Set_CDcounter(16)
  3.   initLesson()
  4.   CheckForTagWd()
  5. end
  6.  
  7. on HideLastStep
  8.   if Get_NEXT() = 10 then
  9.     puppetSprite(13, 0)
  10.     UpdateCursors(13, 0)
  11.   end if
  12. end
  13.  
  14. on TheinitCursor
  15.   initCursorCastNum()
  16.   initCursorList(1)
  17.   set CursorCastNum to getCursor(2)
  18.   cursor([CursorCastNum, CursorCastNum + 1])
  19. end
  20.  
  21. on checkScreenStatus
  22.   CheckRollOver()
  23.   CheckSnakeStatus()
  24.   go(the frame)
  25. end
  26.  
  27. on BlinkNext
  28.   if (the timer > getTimer()) and not soundBusy(2) then
  29.     startTimer()
  30.     if the name of cast the castNum of sprite get_NEXTSprite() = "NEXT" then
  31.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT_E"
  32.     else
  33.       set the castNum of sprite get_NEXTSprite() to the number of cast "NEXT"
  34.     end if
  35.   end if
  36. end
  37.  
  38. on GoNext
  39.   if not get_Disabled() then
  40.     sound stop 2
  41.     if Get_NEXT() = 1 then
  42.       go("t1")
  43.     else
  44.       if Get_NEXT() = 2 then
  45.         set_practiceNum(1)
  46.         go("t1_blink")
  47.       else
  48.         if Get_NEXT() = 3 then
  49.           go("t2")
  50.         else
  51.           if Get_NEXT() = 4 then
  52.             set_practiceNum(2)
  53.             go("t3")
  54.           else
  55.             if Get_NEXT() = 5 then
  56.               set_practiceNum(3)
  57.               go("t4")
  58.             else
  59.               if Get_NEXT() = 6 then
  60.                 set_practiceNum(4)
  61.                 go("t5")
  62.               else
  63.                 if Get_NEXT() = 7 then
  64.                   set_practiceNum(5)
  65.                   go("t6_blink")
  66.                 else
  67.                   if Get_NEXT() = 8 then
  68.                     go("t7")
  69.                   else
  70.                     if Get_NEXT() = 9 then
  71.                       go("t8")
  72.                     else
  73.                       if Get_NEXT() = 10 then
  74.                         initAfterT8()
  75.                         go("t8_blink")
  76.                       else
  77.                         if Get_NEXT() = 11 then
  78.                           go("t9")
  79.                         else
  80.                           if Get_NEXT() = 12 then
  81.                             go("t10")
  82.                           else
  83.                             GoEndMovie()
  84.                           end if
  85.                         end if
  86.                       end if
  87.                     end if
  88.                   end if
  89.                 end if
  90.               end if
  91.             end if
  92.           end if
  93.         end if
  94.       end if
  95.     end if
  96.   end if
  97.   Set_NEXT(Get_NEXT() + 1)
  98. end
  99.  
  100. on stopMovie
  101.   sound stop 1
  102.   unLoad()
  103.   setEmptyCursor()
  104. end
  105.  
  106. on GoEndMovie
  107.   global ReturnToMenu
  108.   PlaySound("GOSOUND.SO1")
  109.   SaveSeenScreens()
  110.   if (ReturnToMenu = "SUBJECT") and (Get_ScreenSubject() <> "11") and (Get_ScreenSubject() <> "00") then
  111.     set theNum to integer(Get_ScreenSubject())
  112.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  113.   else
  114.     if ReturnToMenu = "TOOL" then
  115.       go(1, "NC_MM020.GEO")
  116.     else
  117.       if ReturnToMenu = "SECTION" then
  118.         go(1, "NC_MM040.GEO")
  119.       else
  120.         if ReturnToMenu = "MAIN MENU" then
  121.           go(1, "NC_MM010.GEO")
  122.         else
  123.           go(1, "NC_MM010.GEO")
  124.         end if
  125.       end if
  126.     end if
  127.   end if
  128. end
  129.  
  130. on GoNextMovie
  131.   SaveHilite()
  132.   Add_CDcounter(1)
  133.   set cdNum to Get_CDcounter()
  134.   set movieName to item cdNum of Get_CurrentSnakeScreens()
  135.   go("INIT" & Get_ScreenSubject(), movieName & ".GEO")
  136. end
  137.  
  138. on handleOKMail
  139.   set the castNum of sprite 13 to the number of cast "OKMAIL"
  140.   updateStage()
  141.   initAfterT8()
  142.   GoNext()
  143. end
  144.  
  145. on initAfterT8
  146.   set the puppet of sprite 13 to 0
  147.   set the visible of sprite 14 to 1
  148. end
  149.  
  150. on checkDoubleClick spriteNum
  151.   global firstClickedSprite
  152.   set theClick to 0
  153.   if not get_oneClick() then
  154.     set firstClickedSprite to spriteNum
  155.     set_oneClick(1)
  156.     set_lastClickTimer(the ticks)
  157.   else
  158.     if get_oneClick() and ((the ticks - get_lastClickTimer()) < 20) and (firstClickedSprite = spriteNum) then
  159.       set_lastClickTimer(0)
  160.       set theClick to 1
  161.     else
  162.       if (the ticks - get_lastClickTimer()) > 19 then
  163.         set firstClickedSprite to spriteNum
  164.         set_oneClick(1)
  165.         set_lastClickTimer(the ticks)
  166.       end if
  167.     end if
  168.   end if
  169.   return theClick
  170. end
  171.  
  172. on set_oneClick bool
  173.   global oneClick
  174.   set oneClick to bool
  175. end
  176.  
  177. on get_oneClick
  178.   global oneClick
  179.   return oneClick
  180. end
  181.  
  182. on set_lastClickTimer int
  183.   global lastClickTimer
  184.   set lastClickTimer to int
  185. end
  186.  
  187. on get_lastClickTimer
  188.   global lastClickTimer
  189.   return lastClickTimer
  190. end
  191.  
  192. on set_blinkHilite int
  193.   global blinkHilite
  194.   set blinkHilite to int
  195. end
  196.  
  197. on get_blinkHilite
  198.   global blinkHilite
  199.   return blinkHilite
  200. end
  201.