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

  1. on startMovie
  2.   global WasIN_MM030
  3.   set WasIN_MM030 to 1
  4.   CheckForTagWd()
  5.   initLesson()
  6.   TheinitCursor()
  7.   Set_CurrentTool("00")
  8. end
  9.  
  10. on stopMovie
  11.   sound stop 2
  12.   sound stop 1
  13.   setEmptyCursor()
  14. end
  15.  
  16. on TheinitCursor
  17.   initCursorCastNum()
  18.   initCursorList(1)
  19.   set CursorCastNum to getCursor(2)
  20.   cursor([CursorCastNum, CursorCastNum + 1])
  21. end
  22.  
  23. on InitMenu
  24.   set_NumOfAnswers(11)
  25.   Set_AnsSprite(10)
  26.   Set_PressedLast(EMPTY)
  27.   InitBtns()
  28.   setRollName(EMPTY)
  29. end
  30.  
  31. on InitBtns
  32.   set numOfBtn to Get_NumOfAnswers()
  33.   repeat with i = 1 to numOfBtn
  34.     set the puppet of sprite (Get_AnsSprite() + i - 1) to 1
  35.   end repeat
  36. end
  37.  
  38. on checkScreenStatus
  39.   CheckRollOver()
  40.   go(the frame)
  41. end
  42.  
  43. on PressBtn theBtn
  44.   Set_PressedLast(theBtn)
  45.   switchButt(Get_AnsSprite() + theBtn - 1, "down" & theBtn, "HandleBtn" && theBtn)
  46. end
  47.  
  48. on HandleBtn theBtn
  49.   global ReturnToMenu
  50.   set ReturnToMenu to "SUBJECT"
  51.   if theBtn = 1 then
  52.     Set_ScreenSubject("01")
  53.   else
  54.     if theBtn = 2 then
  55.       Set_ScreenSubject("02")
  56.     else
  57.       if theBtn = 3 then
  58.         Set_ScreenSubject("03")
  59.       else
  60.         if theBtn = 4 then
  61.           Set_ScreenSubject("04")
  62.         else
  63.           if theBtn = 5 then
  64.             Set_ScreenSubject("05")
  65.           else
  66.             if theBtn = 6 then
  67.               Set_ScreenSubject("06")
  68.             else
  69.               if theBtn = 7 then
  70.                 Set_ScreenSubject("07")
  71.               else
  72.                 if theBtn = 8 then
  73.                   Set_ScreenSubject("08")
  74.                 else
  75.                   if theBtn = 9 then
  76.                     Set_ScreenSubject("09")
  77.                   else
  78.                     if theBtn = 10 then
  79.                       Set_ScreenSubject("10")
  80.                     else
  81.                       if theBtn = 11 then
  82.                         Set_ScreenSubject("11")
  83.                       end if
  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.   set the castNum of sprite (Get_AnsSprite() + get_PressedLast() - 1) to the number of cast ("ANS" & get_PressedLast())
  95.   if Get_ScreenSubject() = "01" then
  96.     go(1, "NCS01010.GEO")
  97.   else
  98.     if Get_ScreenSubject() = "02" then
  99.       go(1, "NCS02010.GEO")
  100.     else
  101.       if Get_ScreenSubject() = "03" then
  102.         go(1, "NCS03010.GEO")
  103.       else
  104.         if Get_ScreenSubject() = "04" then
  105.           go(1, "NCS04010.GEO")
  106.         else
  107.           if Get_ScreenSubject() = "05" then
  108.             go(1, "NCS05010.GEO")
  109.           else
  110.             if Get_ScreenSubject() = "06" then
  111.               go(1, "NCS06010.GEO")
  112.             else
  113.               if Get_ScreenSubject() = "07" then
  114.                 go(1, "NCS07010.GEO")
  115.               else
  116.                 if Get_ScreenSubject() = "08" then
  117.                   go(1, "NCS08010.GEO")
  118.                 else
  119.                   if Get_ScreenSubject() = "09" then
  120.                     go(1, "NCS09010.GEO")
  121.                   else
  122.                     if Get_ScreenSubject() = "10" then
  123.                       go(1, "NCS10010.GEO")
  124.                     else
  125.                       if Get_ScreenSubject() = "11" then
  126.                         go(1, "NCS11010.GEO")
  127.                       end if
  128.                     end if
  129.                   end if
  130.                 end if
  131.               end if
  132.             end if
  133.           end if
  134.         end if
  135.       end if
  136.     end if
  137.   end if
  138. end
  139.  
  140. on Set_CDcounter theNum
  141.   global CDcounter
  142.   set CDcounter to theNum
  143. end
  144.  
  145. on Add_CDcounter theNum
  146.   global CDcounter
  147.   set CDcounter to theNum
  148. end
  149.  
  150. on Get_CDcounter
  151.   global CDcounter
  152.   return CDcounter
  153. end
  154.  
  155. on Set_AnsSprite theNum
  156.   global AnsSprite
  157.   set AnsSprite to theNum
  158. end
  159.  
  160. on Get_AnsSprite
  161.   global AnsSprite
  162.   return AnsSprite
  163. end
  164.  
  165. on set_NumOfAnswers theNum
  166.   global NumOfAnswers
  167.   set NumOfAnswers to theNum
  168. end
  169.  
  170. on Get_NumOfAnswers
  171.   global NumOfAnswers
  172.   return NumOfAnswers
  173. end
  174.  
  175. on Set_PressedLast theNum
  176.   global PressedLast
  177.   set PressedLast to theNum
  178. end
  179.  
  180. on get_PressedLast
  181.   global PressedLast
  182.   return PressedLast
  183. end
  184.  
  185. on Set_ScreenSubject theNum
  186.   global ScreenSubject
  187.   set ScreenSubject to theNum
  188. end
  189.  
  190. on Get_ScreenSubject
  191.   global ScreenSubject
  192.   return ScreenSubject
  193. end
  194.  
  195. on Set_ScreensTool01 theMode
  196.   global ScreensTool01
  197.   set ScreensTool01 to theMode
  198. end
  199.  
  200. on Get_ScreensTool01
  201.   global ScreensTool01
  202.   return ScreensTool01
  203. end
  204.  
  205. on Set_ScreensTool02 theMode
  206.   global ScreensTool02
  207.   set ScreensTool02 to theMode
  208. end
  209.  
  210. on Get_ScreensTool02
  211.   global ScreensTool02
  212.   return ScreensTool02
  213. end
  214.  
  215. on Set_ScreensTool03 theMode
  216.   global ScreensTool03
  217.   set ScreensTool03 to theMode
  218. end
  219.  
  220. on Get_ScreensTool03
  221.   global ScreensTool03
  222.   return ScreensTool03
  223. end
  224.  
  225. on Set_ScreensTool04 theMode
  226.   global ScreensTool04
  227.   set ScreensTool04 to theMode
  228. end
  229.  
  230. on Get_ScreensTool04
  231.   global ScreensTool04
  232.   return ScreensTool04
  233. end
  234.  
  235. on Set_ScreensTool05 theMode
  236.   global ScreensTool05
  237.   set ScreensTool05 to theMode
  238. end
  239.  
  240. on Get_ScreensTool05
  241.   global ScreensTool05
  242.   return ScreensTool05
  243. end
  244.  
  245. on Set_ScreensTool06 theMode
  246.   global ScreensTool06
  247.   set ScreensTool06 to theMode
  248. end
  249.  
  250. on Get_ScreensTool06
  251.   global ScreensTool06
  252.   return ScreensTool06
  253. end
  254.  
  255. on Set_ScreensTool07 theMode
  256.   global ScreensTool07
  257.   set ScreensTool07 to theMode
  258. end
  259.  
  260. on Get_ScreensTool07
  261.   global ScreensTool07
  262.   return ScreensTool07
  263. end
  264.  
  265. on Set_ScreensTool08 theMode
  266.   global ScreensTool08
  267.   set ScreensTool08 to theMode
  268. end
  269.  
  270. on Get_ScreensTool08
  271.   global ScreensTool08
  272.   return ScreensTool08
  273. end
  274.  
  275. on Set_ScreensTool09 theMode
  276.   global ScreensTool09
  277.   set ScreensTool09 to theMode
  278. end
  279.  
  280. on Get_ScreensTool09
  281.   global ScreensTool09
  282.   return ScreensTool09
  283. end
  284.  
  285. on Set_ScreensTool10 theMode
  286.   global ScreensTool10
  287.   set ScreensTool10 to theMode
  288. end
  289.  
  290. on Get_ScreensTool10
  291.   global ScreensTool10
  292.   return ScreensTool10
  293. end
  294.  
  295. on Set_ScreensTool11 theMode
  296.   global ScreensTool11
  297.   set ScreensTool11 to theMode
  298. end
  299.  
  300. on Get_ScreensTool11
  301.   global ScreensTool11
  302.   return ScreensTool11
  303. end
  304.  
  305. on Set_ScreensTool12 theMode
  306.   global ScreensTool12
  307.   set ScreensTool12 to theMode
  308. end
  309.  
  310. on Get_ScreensTool12
  311.   global ScreensTool12
  312.   return ScreensTool12
  313. end
  314.  
  315. on Set_ScreensTool13 theMode
  316.   global ScreensTool13
  317.   set ScreensTool13 to theMode
  318. end
  319.  
  320. on Get_ScreensTool13
  321.   global ScreensTool13
  322.   return ScreensTool13
  323. end
  324.  
  325. on Set_WasInPathTool01 theMode
  326.   global WasInPathTool01
  327.   set WasInPathTool01 to theMode
  328. end
  329.  
  330. on Get_WasInPathTool01
  331.   global WasInPathTool01
  332.   return WasInPathTool01
  333. end
  334.  
  335. on Set_WasInPathTool02 theMode
  336.   global WasInPathTool02
  337.   set WasInPathTool02 to theMode
  338. end
  339.  
  340. on Get_WasInPathTool02
  341.   global WasInPathTool02
  342.   return WasInPathTool02
  343. end
  344.  
  345. on Set_WasInPathTool03 theMode
  346.   global WasInPathTool03
  347.   set WasInPathTool03 to theMode
  348. end
  349.  
  350. on Get_WasInPathTool03
  351.   global WasInPathTool03
  352.   return WasInPathTool03
  353. end
  354.  
  355. on Set_WasInPathTool04 theMode
  356.   global WasInPathTool04
  357.   set WasInPathTool04 to theMode
  358. end
  359.  
  360. on Get_WasInPathTool04
  361.   global WasInPathTool04
  362.   return WasInPathTool04
  363. end
  364.  
  365. on Set_WasInPathTool05 theMode
  366.   global WasInPathTool05
  367.   set WasInPathTool05 to theMode
  368. end
  369.  
  370. on Get_WasInPathTool05
  371.   global WasInPathTool05
  372.   return WasInPathTool05
  373. end
  374.  
  375. on Set_WasInPathTool06 theMode
  376.   global WasInPathTool06
  377.   set WasInPathTool06 to theMode
  378. end
  379.  
  380. on Get_WasInPathTool06
  381.   global WasInPathTool06
  382.   return WasInPathTool06
  383. end
  384.  
  385. on Set_WasInPathTool07 theMode
  386.   global WasInPathTool07
  387.   set WasInPathTool07 to Get_SeenINPath()
  388. end
  389.  
  390. on Get_WasInPathTool07
  391.   global WasInPathTool07
  392.   return WasInPathTool07
  393. end
  394.  
  395. on Set_WasInPathTool08 theMode
  396.   global WasInPathTool08
  397.   set WasInPathTool08 to Get_SeenINPath()
  398. end
  399.  
  400. on Get_WasInPathTool08
  401.   global WasInPathTool08
  402.   return WasInPathTool08
  403. end
  404.  
  405. on Set_WasInPathTool09 theMode
  406.   global WasInPathTool09
  407.   set WasInPathTool09 to Get_SeenINPath()
  408. end
  409.  
  410. on Get_WasInPathTool09
  411.   global WasInPathTool09
  412.   return WasInPathTool09
  413. end
  414.  
  415. on Set_WasInPathTool10 theMode
  416.   global WasInPathTool10
  417.   set WasInPathTool10 to Get_SeenINPath()
  418. end
  419.  
  420. on Get_WasInPathTool10
  421.   global WasInPathTool10
  422.   return WasInPathTool10
  423. end
  424.  
  425. on Set_WasInPathTool11 theMode
  426.   global WasInPathTool11
  427.   set WasInPathTool11 to Get_SeenINPath()
  428. end
  429.  
  430. on Get_WasInPathTool11
  431.   global WasInPathTool11
  432.   return WasInPathTool11
  433. end
  434.  
  435. on Set_WasInPathTool12 theMode
  436.   global WasInPathTool12
  437.   set WasInPathTool12 to Get_SeenINPath()
  438. end
  439.  
  440. on Get_WasInPathTool12
  441.   global WasInPathTool12
  442.   return WasInPathTool12
  443. end
  444.  
  445. on Set_WasInPathTool13 theMode
  446.   global WasInPathTool13
  447.   set WasInPathTool13 to Get_SeenINPath()
  448. end
  449.  
  450. on Get_WasInPathTool13
  451.   global WasInPathTool13
  452.   return WasInPathTool13
  453. end
  454.  
  455. on Set_CurrentTool theMode
  456.   global CurrentTool
  457.   set CurrentTool to theMode
  458. end
  459.  
  460. on Get_CurrentTool
  461.   global CurrentTool
  462.   return CurrentTool
  463. end
  464.  
  465. on Set_CurrentSnakeScreens theMode
  466.   global CurrentSnakeScreens
  467.   set CurrentSnakeScreens to theMode
  468. end
  469.  
  470. on Get_CurrentSnakeScreens
  471.   global CurrentSnakeScreens
  472.   return CurrentSnakeScreens
  473. end
  474.  
  475. on Set_SeenINPath theNum, theItem
  476.   global SEENINPath
  477.   if paramCount() = 2 then
  478.     put theNum into item theItem of SEENINPath
  479.   else
  480.     set SEENINPath to theNum
  481.   end if
  482. end
  483.  
  484. on Get_SeenINPath theItem
  485.   global SEENINPath
  486.   if paramCount() = 1 then
  487.     return item theItem of SEENINPath
  488.   else
  489.     return SEENINPath
  490.   end if
  491. end
  492.