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

  1. on initLesson
  2.   DisableBTNS()
  3.   setRollName(EMPTY)
  4.   set the visible of sprite 48 to 0
  5.   updateStage()
  6.   InitSnakelogic()
  7.   RestoreHilites()
  8.   Set_BACKSprite(47)
  9.   Set_NEXTSprite(46)
  10.   Set_HelpSprite(45)
  11.   Set_SoundSprite(44)
  12.   Set_NOTEPADSprite(43)
  13.   Set_GLOSSARYSprite(42)
  14.   setTimer(30)
  15.   set_MarkSprite(2)
  16.   Set_NavigatorHL(5)
  17.   Set_MainSprite(6)
  18.   Set_IndexSprite(7)
  19.   Set_FindSprite(9)
  20.   Set_TagWDSprite(8)
  21.   repeat with i = 42 to 47
  22.     set the immediate of sprite i to 1
  23.     set the puppet of sprite i to 1
  24.   end repeat
  25.   set the puppet of sprite get_NavigatorHL() to 1
  26.   set the puppet of sprite Get_MarkSprite() to 1
  27.   set the mouseDownScript to "CheckOpenWindow"
  28.   Set_NEXT(1)
  29. end
  30.  
  31. on InitSubjectSprite
  32.   if Get_ScreenSubject() <> "00" then
  33.     Set_SubjectSprite(39)
  34.     set the puppet of sprite Get_SubjectSprite() to 1
  35.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  36.     UpdateCursors(Get_SubjectSprite(), 4)
  37.   end if
  38. end
  39.  
  40. on GoToIntro
  41.   if Get_ScreenSubject() <> "00" then
  42.     set theNum to integer(Get_ScreenSubject())
  43.     SaveSeenScreens()
  44.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  45.   end if
  46. end
  47.  
  48. on Set_SubjectSprite theSp
  49.   global SubjectSprite
  50.   set SubjectSprite to theSp
  51. end
  52.  
  53. on Get_SubjectSprite
  54.   global SubjectSprite
  55.   return SubjectSprite
  56. end
  57.  
  58. on Set_SubjectHeight theSp
  59.   global SubjectHeight
  60.   set SubjectHeight to theSp
  61. end
  62.  
  63. on Get_SubjectHeight
  64.   global SubjectHeight
  65.   return SubjectHeight
  66. end
  67.  
  68. on CheckForTagWd
  69.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  70.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  71.     set the cursor of sprite 48 to [400, 401]
  72.   end if
  73. end
  74.  
  75. on PlaySound theSnd
  76.   global PCDEL
  77.   if Get_PlayDub() then
  78.     sound playFile 2, the pathName & "SND03" & PCDEL & theSnd
  79.   end if
  80. end
  81.  
  82. on GoMain
  83.   sound stop 2
  84.   SaveSeenScreens()
  85.   go(1, "NC_MM010.GEO")
  86. end
  87.  
  88. on GoFind
  89.   global FindWD, CDfilePath, PCDEL
  90.   if objectp(FindWD) then
  91.     forget(FindWD)
  92.   end if
  93.   set the cursor of sprite 48 to [400, 401]
  94.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  95.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  96.   set the titleVisible of FindWD to 0
  97.   set the modal of FindWD to 1
  98.   open(FindWD)
  99. end
  100.  
  101. on HideFINDWindow
  102.   global FindWD
  103.   if objectp(FindWD) then
  104.     forget(FindWD)
  105.   end if
  106. end
  107.  
  108. on closeFindWindow
  109.   global FindWD
  110.   if objectp(FindWD) then
  111.     forget(FindWD)
  112.   end if
  113.   set the cursor of sprite 48 to 0
  114.   tell the stage
  115.     continue()
  116.   end tell
  117. end
  118.  
  119. on OpenFind2WD theData
  120.   global Find2WD, CDfilePath, PCDEL
  121.   HideFINDWindow()
  122.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  123.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  124.   set the titleVisible of Find2WD to 0
  125.   set the modal of Find2WD to 1
  126.   tell Find2WD
  127.     UpdateSelection(theData)
  128.   end tell
  129.   open(Find2WD)
  130. end
  131.  
  132. on CloseFind2Window
  133.   global Find2WD
  134.   if objectp(Find2WD) then
  135.     forget(Find2WD)
  136.   end if
  137.   set the cursor of sprite 48 to 0
  138.   tell the stage
  139.     continue()
  140.   end tell
  141. end
  142.  
  143. on GoIndex
  144.   global IndexWD, CDfilePath, PCDEL
  145.   if objectp(IndexWD) then
  146.     forget(IndexWD)
  147.   end if
  148.   set the cursor of sprite 48 to [400, 401]
  149.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  150.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  151.   set the titleVisible of IndexWD to 0
  152.   set the modal of IndexWD to 1
  153.   tell IndexWD
  154.     RonenInit()
  155.   end tell
  156.   open(IndexWD)
  157. end
  158.  
  159. on OpenWordWD theData
  160.   global WordWD, CDfilePath, PCDEL
  161.   HIdeIndexWindow()
  162.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  163.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  164.   set the titleVisible of WordWD to 0
  165.   set the modal of WordWD to 1
  166.   tell WordWD
  167.     UpdateSelection(theData)
  168.   end tell
  169.   open(WordWD)
  170. end
  171.  
  172. on CloseWordWindow
  173.   global WordWD
  174.   if objectp(WordWD) then
  175.     forget(WordWD)
  176.   end if
  177.   set the cursor of sprite 48 to 0
  178.   tell the stage
  179.     continue()
  180.   end tell
  181. end
  182.  
  183. on HIdeIndexWindow
  184.   global IndexWD
  185.   if objectp(IndexWD) then
  186.     forget(IndexWD)
  187.   end if
  188. end
  189.  
  190. on CloseIndexWindow
  191.   global IndexWD
  192.   if objectp(IndexWD) then
  193.     forget(IndexWD)
  194.   end if
  195.   set the cursor of sprite 48 to 0
  196.   tell the stage
  197.     continue()
  198.   end tell
  199. end
  200.  
  201. on GoIndexMovie thekind
  202.   if thekind = "tool" then
  203.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  204.   else
  205.     go(1, Get_IndexMovie())
  206.   end if
  207. end
  208.  
  209. on set_IndexMovie theMoov
  210.   global IndexMovie
  211.   set IndexMovie to theMoov
  212. end
  213.  
  214. on Get_IndexMovie theMoov
  215.   global IndexMovie
  216.   return IndexMovie
  217. end
  218.  
  219. on GoTags
  220.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  221.   if objectp(TagWD) then
  222.     forget(TagWD)
  223.   end if
  224.   set the cursor of sprite 48 to [400, 401]
  225.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  226.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  227.   set the titleVisible of TagWD to 0
  228.   set the modal of TagWD to 1
  229.   tell TagWD
  230.     UpdateFields()
  231.     PlaceMySlider()
  232.     init()
  233.   end tell
  234.   open(TagWD)
  235. end
  236.  
  237. on OpenRenameWD theLine
  238.   global RenameWD, CDfilePath, PCDEL
  239.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  240.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  241.   set the titleVisible of RenameWD to 0
  242.   set the modal of RenameWD to 1
  243.   tell RenameWD
  244.     UpdateLine(theLine)
  245.   end tell
  246.   open(RenameWD)
  247. end
  248.  
  249. on UpdateRenameWD theText
  250.   global TagWD
  251.   tell TagWD
  252.     UpdateRename(theText)
  253.   end tell
  254.   CloseRenameWD()
  255. end
  256.  
  257. on CloseRenameWD
  258.   global RenameWD
  259.   if objectp(RenameWD) then
  260.     forget(RenameWD)
  261.   end if
  262. end
  263.  
  264. on OpenSureWD
  265.   global SureWD, CDfilePath, PCDEL
  266.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  267.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  268.   set the titleVisible of SureWD to 0
  269.   set the modal of SureWD to 1
  270.   open(SureWD)
  271. end
  272.  
  273. on CloseSureWD
  274.   global SureWD
  275.   if objectp(SureWD) then
  276.     forget(SureWD)
  277.   end if
  278. end
  279.  
  280. on ClearAllTags
  281.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  282.   CloseSureWD()
  283.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  284.   set TAGS_LIST to []
  285.   set TAGS_TITLES to EMPTY
  286.   set TAGS_DATA to EMPTY
  287.   tell TagWD
  288.     UpdateFields()
  289.     PlaceMySlider()
  290.     init()
  291.   end tell
  292.   updateStage()
  293. end
  294.  
  295. on CloseTagWindow
  296.   global TagWD
  297.   if objectp(TagWD) then
  298.     forget(TagWD)
  299.   end if
  300.   set the cursor of sprite 48 to 0
  301.   tell the stage
  302.     continue()
  303.   end tell
  304. end
  305.  
  306. on GoTagMovie
  307.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  308. end
  309.  
  310. on Set_TagMovie theMovie
  311.   global TagMovie
  312.   set TagMovie to theMovie
  313. end
  314.  
  315. on Get_TagMovie
  316.   global TagMovie
  317.   return TagMovie
  318. end
  319.  
  320. on MarkScreen toMark
  321.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  322.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  323.   set movieName to the movieName
  324.   if toMark = "MARK" then
  325.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  326.     set LineNum to count(TAGS_LIST)
  327.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  328.     put TheTitle into line LineNum of TAGS_TITLES
  329.     put movieName into item 1 of line LineNum of TAGS_DATA
  330.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  331.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  332.   else
  333.     set itemNum to getOne(TAGS_LIST, movieName)
  334.     deleteAt(TAGS_LIST, itemNum)
  335.     delete line itemNum of TAGS_TITLES
  336.     delete line itemNum of TAGS_DATA
  337.   end if
  338.   updateStage()
  339. end
  340.  
  341. on UpdateMark
  342.   global TAGS_LIST
  343.   set movieName to the movieName
  344.   if getOne(TAGS_LIST, movieName) then
  345.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  346.   end if
  347. end
  348.  
  349. on HandleSound
  350.   global volumeWindow, CDfilePath, PCDEL
  351.   if objectp(volumeWindow) then
  352.     forget(volumeWindow)
  353.   end if
  354.   EnableBtn("SOUND", get_SOUNDSprite())
  355.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  356.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  357.   set the titleVisible of volumeWindow to 0
  358.   tell volumeWindow
  359.     RestoreSoundStatus()
  360.   end tell
  361.   open(volumeWindow)
  362. end
  363.  
  364. on handleQuit
  365.   global QuitWindow, CDfilePath, PCDEL
  366.   cursor(4)
  367.   if objectp(QuitWindow) then
  368.     forget(QuitWindow)
  369.   end if
  370.   set the cursor of sprite 48 to [400, 401]
  371.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  372.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  373.   set the titleVisible of QuitWindow to 0
  374.   set the modal of QuitWindow to 1
  375.   open(QuitWindow)
  376. end
  377.  
  378. on handleHELP
  379.   EnableBtn("HELP", get_HELPSprite())
  380.   openHelpWd()
  381. end
  382.  
  383. on openHelpWd
  384.   global helpWD, lastFrame, CDfilePath, PCDEL
  385.   set the cursor of sprite 48 to [400, 401]
  386.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  387.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  388.   set the titleVisible of helpWD to 0
  389.   set the modal of helpWD to 1
  390.   open(helpWD)
  391.   set lastFrame to the frame
  392.   go("helpLoop")
  393. end
  394.  
  395. on closeHelpWd
  396.   global helpWD, lastFrame
  397.   set the cursor of sprite 48 to 0
  398.   forget(helpWD)
  399.   go(lastFrame)
  400. end
  401.  
  402. on HandleNEXT
  403.   GoNext()
  404.   EnableBtn("NEXT", get_NEXTSprite())
  405. end
  406.  
  407. on HandleBACK
  408.   if the castNum of sprite 32 = the number of cast "lamp_Off" then
  409.     UpdateCursors(32, 0)
  410.   end if
  411.   EnableBtn("BACK", get_BACKSprite())
  412.   EnableBtn("NEXT", get_NEXTSprite())
  413.   HideLastStep()
  414.   Set_NEXT(1)
  415.   sound stop 2
  416.   go("start")
  417. end
  418.  
  419. on HandleGLOSSARY
  420.   global DicWindow
  421.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  422.   set the cursor of sprite 48 to [400, 401]
  423.   open(DicWindow)
  424.   tell the stage
  425.     pause()
  426.   end tell
  427.   tell DicWindow
  428.     go(2)
  429.   end tell
  430. end
  431.  
  432. on closeGLOSSARYwindow
  433.   set the cursor of sprite 48 to 0
  434.   continue()
  435. end
  436.  
  437. on closeNotePadWindow
  438.   set the cursor of sprite 48 to 0
  439.   continue()
  440. end
  441.  
  442. on HandleNOTEPAD
  443.   global NoteBookWindow, CDfilePath, PCDEL
  444.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  445.   set the cursor of sprite 48 to [400, 401]
  446.   if objectp(NoteBookWindow) then
  447.     forget(NoteBookWindow)
  448.   end if
  449.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  450.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  451.   set NBRect to the rect of NoteBookWindow
  452.   set x1 to getAt(NBRect, 1)
  453.   set y1 to getAt(NBRect, 2)
  454.   set x2 to getAt(NBRect, 3)
  455.   set y2 to getAt(NBRect, 4)
  456.   set the modal of NoteBookWindow to 1
  457.   set the windowType of NoteBookWindow to 2
  458.   set the titleVisible of window "NoteBook" to 0
  459.   open(NoteBookWindow)
  460. end
  461.  
  462. on createNoteBook
  463.   global NBPrintWindow, CDfilePath, PCDEL
  464.   if objectp(NBPrintWindow) then
  465.     forget(NBPrintWindow)
  466.   end if
  467.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  468.   set StageRect to the rect of the stage
  469.   set x1 to getAt(StageRect, 1)
  470.   set y1 to getAt(StageRect, 2)
  471.   set x2 to getAt(StageRect, 3)
  472.   set y2 to getAt(StageRect, 4)
  473.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  474.   set NBRect to the rect of NBPrintWindow
  475.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  476.   set the windowType of NBPrintWindow to 2
  477.   open(NBPrintWindow)
  478. end
  479.  
  480. on closePrintWindow
  481.   RestoreHilites()
  482. end
  483.  
  484. on closeQuitWindow
  485.   global QuitWindow
  486.   set the cursor of sprite 48 to 0
  487.   forget(QuitWindow)
  488.   continue()
  489. end
  490.  
  491. on leaveApplication
  492.   global QuitWindow, UsersData, TheBackWindow
  493.   forget(QuitWindow)
  494.   if the machineType <> 256 then
  495.   end if
  496.   quit()
  497. end
  498.  
  499. on keyDown
  500.   if not get_Disabled() then
  501.     if the commandDown and ((the key = "q") or (the key = ".")) then
  502.       handleQuit()
  503.     else
  504.       if (the keyCode = 76) or (the keyCode = 36) then
  505.         HandleNEXT()
  506.       else
  507.         pass()
  508.       end if
  509.     end if
  510.   else
  511.     pass()
  512.   end if
  513. end
  514.  
  515. on CheckOpenWindow
  516.   global volumeWindow
  517.   if objectp(volumeWindow) then
  518.     forget(volumeWindow)
  519.     continue()
  520.   end if
  521. end
  522.  
  523. on CheckRollOver
  524.   if rollOver(get_IndexSprite()) then
  525.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  526.     set Hloc to the locH of sprite get_IndexSprite()
  527.     set Vloc to the locV of sprite get_IndexSprite()
  528.   else
  529.     if rollOver(get_FindSprite()) then
  530.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  531.       set Hloc to the locH of sprite get_FindSprite()
  532.       set Vloc to the locV of sprite get_FindSprite()
  533.     else
  534.       if rollOver(Get_TagWdSprite()) then
  535.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  536.         set Hloc to the locH of sprite Get_TagWdSprite()
  537.         set Vloc to the locV of sprite Get_TagWdSprite()
  538.       else
  539.         set Hloc to EMPTY
  540.       end if
  541.     end if
  542.   end if
  543.   if Hloc <> EMPTY then
  544.     set the locH of sprite get_NavigatorHL() to Hloc
  545.     set the locV of sprite get_NavigatorHL() to Vloc
  546.     set the visible of sprite get_NavigatorHL() to 1
  547.     updateStage()
  548.   else
  549.     set the visible of sprite get_NavigatorHL() to 0
  550.     updateStage()
  551.   end if
  552. end
  553.  
  554. on setDefaultCursor
  555.   set cursorList to getCursorList()
  556.   set counter to count(cursorList)
  557.   repeat with i = 1 to counter
  558.     set currItem to getAt(cursorList, i)
  559.     if currItem <> 0 then
  560.       set CursorCastNum to getCursor(currItem)
  561.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  562.     end if
  563.   end repeat
  564. end
  565.  
  566. on UpdateCursors theSp, theCursor
  567.   global cursorList
  568.   setAt(cursorList, theSp, theCursor)
  569.   if theCursor = 0 then
  570.     set the cursor of sprite theSp to theCursor
  571.   else
  572.     set CursorCastNum to getCursor(theCursor)
  573.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  574.   end if
  575. end
  576.  
  577. on setEmptyCursor
  578.   set cursorList to getCursorList()
  579.   set counter to count(cursorList)
  580.   repeat with i = 1 to counter
  581.     set currItem to getAt(cursorList, i)
  582.     if currItem <> 0 then
  583.       set the cursor of sprite i to 0
  584.       setAt(cursorList, i, 0)
  585.     end if
  586.   end repeat
  587. end
  588.  
  589. on setCursorTool int
  590.   global CursorTool
  591.   set CursorTool to int
  592. end
  593.  
  594. on initCursorCastNum
  595.   global CursorCastNum
  596.   set CursorCastNum to "400,402,404,406"
  597. end
  598.  
  599. on getCursor cursorNum
  600.   global CursorCastNum
  601.   return integer(item cursorNum of CursorCastNum)
  602. end
  603.  
  604. on initCursorList list
  605.   global cursorList
  606.   if list = 1 then
  607.     set cursorList to [2, 3, 0, 0, 0, 4, 3, 3, 3, 4, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 3, 3, 3, 3]
  608.   end if
  609.   setDefaultCursor()
  610. end
  611.  
  612. on getCursorList
  613.   global cursorList
  614.   return cursorList
  615. end
  616.  
  617. on ___BTNS_HANDLERS___
  618. end
  619.  
  620. on switchButt spriteNum, castDown, macroName
  621.   if getRollName() <> EMPTY then
  622.     set spNum to EMPTY
  623.     do("put get_" & getRollName() & "Sprite() into spNum")
  624.     set the castNum of sprite spNum to the number of cast getRollName()
  625.     setRollName(EMPTY)
  626.   end if
  627.   set flag to 0
  628.   set SaveCast to the castNum of sprite spriteNum
  629.   set flag to swapCast(spriteNum, SaveCast, castDown)
  630.   repeat while the stillDown
  631.     set flag to swapCast(spriteNum, SaveCast, castDown)
  632.   end repeat
  633.   if flag = 1 then
  634.     sound stop 2
  635.     do(macroName)
  636.   end if
  637. end
  638.  
  639. on swapCast spriteNum, SaveCast, castDown
  640.   if rollOver(spriteNum) then
  641.     set the castNum of sprite spriteNum to the number of cast castDown
  642.     updateStage()
  643.     return 1
  644.   else
  645.     set the castNum of sprite spriteNum to the number of cast SaveCast
  646.     updateStage()
  647.     return 0
  648.   end if
  649. end
  650.  
  651. on DisableBtn btnName, btnSprite
  652.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  653. end
  654.  
  655. on EnableBtn btnName, btnSprite
  656.   set the castNum of sprite btnSprite to the number of cast btnName
  657. end
  658.  
  659. on setRollName theName
  660.   global RollName
  661.   set RollName to theName
  662. end
  663.  
  664. on getRollName
  665.   global RollName
  666.   return RollName
  667. end
  668.  
  669. on Set_NOTEPADSprite theSp
  670.   global NOTEPADSprite
  671.   set NOTEPADSprite to theSp
  672. end
  673.  
  674. on Get_NOTEPADSprite
  675.   global NOTEPADSprite
  676.   return NOTEPADSprite
  677. end
  678.  
  679. on Set_GLOSSARYSprite theSp
  680.   global GLOSSARYSprite
  681.   set GLOSSARYSprite to theSp
  682. end
  683.  
  684. on Get_GLOSSARYSprite
  685.   global GLOSSARYSprite
  686.   return GLOSSARYSprite
  687. end
  688.  
  689. on Set_SoundSprite theSp
  690.   global SoundSprite
  691.   set SoundSprite to theSp
  692. end
  693.  
  694. on get_SOUNDSprite
  695.   global SoundSprite
  696.   return SoundSprite
  697. end
  698.  
  699. on Set_HelpSprite theSp
  700.   global HelpSprite
  701.   set HelpSprite to theSp
  702. end
  703.  
  704. on get_HELPSprite
  705.   global HelpSprite
  706.   return HelpSprite
  707. end
  708.  
  709. on Set_NEXTSprite theSp
  710.   global NEXTSprite
  711.   set NEXTSprite to theSp
  712. end
  713.  
  714. on get_NEXTSprite
  715.   global NEXTSprite
  716.   return NEXTSprite
  717. end
  718.  
  719. on Set_BACKSprite theSp
  720.   global BACKSprite
  721.   set BACKSprite to theSp
  722. end
  723.  
  724. on get_BACKSprite
  725.   global BACKSprite
  726.   return BACKSprite
  727. end
  728.  
  729. on Set_NavigatorHL theSp
  730.   global NavigatorHL
  731.   set NavigatorHL to theSp
  732. end
  733.  
  734. on get_NavigatorHL
  735.   global NavigatorHL
  736.   return NavigatorHL
  737. end
  738.  
  739. on Set_IndexSprite theSp
  740.   global IndexSprite
  741.   set IndexSprite to theSp
  742. end
  743.  
  744. on get_IndexSprite
  745.   global IndexSprite
  746.   return IndexSprite
  747. end
  748.  
  749. on Set_TagWDSprite theSp
  750.   global TagWdSprite
  751.   set TagWdSprite to theSp
  752. end
  753.  
  754. on Get_TagWdSprite
  755.   global TagWdSprite
  756.   return TagWdSprite
  757. end
  758.  
  759. on Set_FindSprite theSp
  760.   global FindSprite
  761.   set FindSprite to theSp
  762. end
  763.  
  764. on get_FindSprite
  765.   global FindSprite
  766.   return FindSprite
  767. end
  768.  
  769. on Set_MainSprite theSp
  770.   global MainSprite
  771.   set MainSprite to theSp
  772. end
  773.  
  774. on get_MainSprite
  775.   global MainSprite
  776.   return MainSprite
  777. end
  778.  
  779. on Set_NEXT theSp
  780.   global next
  781.   set next to theSp
  782. end
  783.  
  784. on Get_NEXT
  785.   global next
  786.   return next
  787. end
  788.  
  789. on Set_PlayDub theMode
  790.   global PlayDub
  791.   set PlayDub to theMode
  792. end
  793.  
  794. on Get_PlayDub
  795.   global PlayDub
  796.   return PlayDub
  797. end
  798.  
  799. on Set_ScreenSubject theNum
  800.   global ScreenSubject
  801.   set ScreenSubject to theNum
  802. end
  803.  
  804. on Get_ScreenSubject
  805.   global ScreenSubject
  806.   return ScreenSubject
  807. end
  808.  
  809. on set_MarkSprite theNum
  810.   global MarkSprite
  811.   set MarkSprite to theNum
  812. end
  813.  
  814. on Get_MarkSprite
  815.   global MarkSprite
  816.   return MarkSprite
  817. end
  818.  
  819. on setTimer int
  820.   global theTime
  821.   set theTime to int
  822. end
  823.  
  824. on getTimer
  825.   global theTime
  826.   return theTime
  827. end
  828.  
  829. on DisableBTNS
  830.   global DisableMode
  831.   set DisableMode to 1
  832. end
  833.  
  834. on EnableBtns
  835.   global DisableMode
  836.   set DisableMode to 0
  837. end
  838.  
  839. on get_Disabled
  840.   global DisableMode
  841.   return DisableMode
  842. end
  843.