home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct02060.geo / 00026.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. end
  29.  
  30. on InitSubjectSprite
  31.   if Get_ScreenSubject() <> "00" then
  32.     Set_SubjectSprite(39)
  33.     set the puppet of sprite Get_SubjectSprite() to 1
  34.     set the height of sprite Get_SubjectSprite() to integer(line integer(Get_ScreenSubject()) of Get_SubjectHeight())
  35.     UpdateCursors(Get_SubjectSprite(), 4)
  36.   end if
  37. end
  38.  
  39. on GoToIntro
  40.   if Get_ScreenSubject() <> "00" then
  41.     set theNum to integer(Get_ScreenSubject())
  42.     SaveSeenScreens()
  43.     go(1, "NCS" & Get_ScreenSubject() & "010.GEO")
  44.   end if
  45. end
  46.  
  47. on Set_SubjectSprite theSp
  48.   global SubjectSprite
  49.   set SubjectSprite to theSp
  50. end
  51.  
  52. on Get_SubjectSprite
  53.   global SubjectSprite
  54.   return SubjectSprite
  55. end
  56.  
  57. on Set_SubjectHeight theSp
  58.   global SubjectHeight
  59.   set SubjectHeight to theSp
  60. end
  61.  
  62. on Get_SubjectHeight
  63.   global SubjectHeight
  64.   return SubjectHeight
  65. end
  66.  
  67. on CheckForTagWd
  68.   global TagWD, IndexWD, FindWD, WordWD, Find2WD
  69.   if objectp(TagWD) or objectp(IndexWD) or objectp(FindWD) or objectp(Find2WD) or objectp(WordWD) then
  70.     set the cursor of sprite 48 to [400, 401]
  71.   end if
  72. end
  73.  
  74. on PlaySound theSnd
  75.   global PCDEL
  76.   if Get_PlayDub() then
  77.     sound playFile 2, the pathName & "SND02" & PCDEL & theSnd
  78.   end if
  79. end
  80.  
  81. on GoMain
  82.   sound stop 2
  83.   SaveSeenScreens()
  84.   go(1, "NC_MM010.GEO")
  85. end
  86.  
  87. on GoFind
  88.   global FindWD, CDfilePath, PCDEL
  89.   if objectp(FindWD) then
  90.     forget(FindWD)
  91.   end if
  92.   set the cursor of sprite 48 to [400, 401]
  93.   set FindWD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND.GEO")
  94.   set the rect of FindWD to rect(the stageLeft + 221, the stageTop + 4, the stageLeft + 541, the stageTop + 164)
  95.   set the titleVisible of FindWD to 0
  96.   set the modal of FindWD to 1
  97.   open(FindWD)
  98. end
  99.  
  100. on HideFINDWindow
  101.   global FindWD
  102.   if objectp(FindWD) then
  103.     forget(FindWD)
  104.   end if
  105. end
  106.  
  107. on closeFindWindow
  108.   global FindWD
  109.   if objectp(FindWD) then
  110.     forget(FindWD)
  111.   end if
  112.   set the cursor of sprite 48 to 0
  113.   tell the stage
  114.     continue()
  115.   end tell
  116. end
  117.  
  118. on OpenFind2WD theData
  119.   global Find2WD, CDfilePath, PCDEL
  120.   HideFINDWindow()
  121.   set Find2WD to window (CDfilePath & "WDS" & PCDEL & "NC_FIND2.GEO")
  122.   set the rect of Find2WD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  123.   set the titleVisible of Find2WD to 0
  124.   set the modal of Find2WD to 1
  125.   tell Find2WD
  126.     UpdateSelection(theData)
  127.   end tell
  128.   open(Find2WD)
  129. end
  130.  
  131. on CloseFind2Window
  132.   global Find2WD
  133.   if objectp(Find2WD) then
  134.     forget(Find2WD)
  135.   end if
  136.   set the cursor of sprite 48 to 0
  137.   tell the stage
  138.     continue()
  139.   end tell
  140. end
  141.  
  142. on GoIndex
  143.   global IndexWD, CDfilePath, PCDEL
  144.   if objectp(IndexWD) then
  145.     forget(IndexWD)
  146.   end if
  147.   set the cursor of sprite 48 to [400, 401]
  148.   set IndexWD to window (CDfilePath & "WDS" & PCDEL & "NC_INDEX.GEO")
  149.   set the rect of IndexWD to rect(the stageLeft + 220, the stageTop + 4, the stageLeft + 541, the stageTop + 276)
  150.   set the titleVisible of IndexWD to 0
  151.   set the modal of IndexWD to 1
  152.   tell IndexWD
  153.     RonenInit()
  154.   end tell
  155.   open(IndexWD)
  156. end
  157.  
  158. on OpenWordWD theData
  159.   global WordWD, CDfilePath, PCDEL
  160.   HIdeIndexWindow()
  161.   set WordWD to window (CDfilePath & "WDS" & PCDEL & "NC_WORD.GEO")
  162.   set the rect of WordWD to rect(the stageLeft + 48, the stageTop + 4, the stageLeft + 541, the stageTop + 212)
  163.   set the titleVisible of WordWD to 0
  164.   set the modal of WordWD to 1
  165.   tell WordWD
  166.     UpdateSelection(theData)
  167.   end tell
  168.   open(WordWD)
  169. end
  170.  
  171. on CloseWordWindow
  172.   global WordWD
  173.   if objectp(WordWD) then
  174.     forget(WordWD)
  175.   end if
  176.   set the cursor of sprite 48 to 0
  177.   tell the stage
  178.     continue()
  179.   end tell
  180. end
  181.  
  182. on HIdeIndexWindow
  183.   global IndexWD
  184.   if objectp(IndexWD) then
  185.     forget(IndexWD)
  186.   end if
  187. end
  188.  
  189. on CloseIndexWindow
  190.   global IndexWD
  191.   if objectp(IndexWD) then
  192.     forget(IndexWD)
  193.   end if
  194.   set the cursor of sprite 48 to 0
  195.   tell the stage
  196.     continue()
  197.   end tell
  198. end
  199.  
  200. on GoIndexMovie thekind
  201.   if thekind = "tool" then
  202.     go("Init" & Get_ScreenSubject(), Get_IndexMovie())
  203.   else
  204.     go(1, Get_IndexMovie())
  205.   end if
  206. end
  207.  
  208. on set_IndexMovie theMoov
  209.   global IndexMovie
  210.   set IndexMovie to theMoov
  211. end
  212.  
  213. on Get_IndexMovie theMoov
  214.   global IndexMovie
  215.   return IndexMovie
  216. end
  217.  
  218. on GoTags
  219.   global TagWD, TAGS_DATA, TAGS_TITLES, TAGS_LIST, CDfilePath, PCDEL
  220.   if objectp(TagWD) then
  221.     forget(TagWD)
  222.   end if
  223.   set the cursor of sprite 48 to [400, 401]
  224.   set TagWD to window (CDfilePath & "WDS" & PCDEL & "NC_TAGS.GEO")
  225.   set the rect of TagWD to rect(the stageLeft + 274, the stageTop + 4, the stageLeft + 539, the stageTop + 249)
  226.   set the titleVisible of TagWD to 0
  227.   set the modal of TagWD to 1
  228.   tell TagWD
  229.     UpdateFields()
  230.     PlaceMySlider()
  231.     init()
  232.   end tell
  233.   open(TagWD)
  234. end
  235.  
  236. on OpenRenameWD theLine
  237.   global RenameWD, CDfilePath, PCDEL
  238.   set RenameWD to window (CDfilePath & "WDS" & PCDEL & "NC_RNAME.GEO")
  239.   set the rect of RenameWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  240.   set the titleVisible of RenameWD to 0
  241.   set the modal of RenameWD to 1
  242.   tell RenameWD
  243.     UpdateLine(theLine)
  244.   end tell
  245.   open(RenameWD)
  246. end
  247.  
  248. on UpdateRenameWD theText
  249.   global TagWD
  250.   tell TagWD
  251.     UpdateRename(theText)
  252.   end tell
  253.   CloseRenameWD()
  254. end
  255.  
  256. on CloseRenameWD
  257.   global RenameWD
  258.   if objectp(RenameWD) then
  259.     forget(RenameWD)
  260.   end if
  261. end
  262.  
  263. on OpenSureWD
  264.   global SureWD, CDfilePath, PCDEL
  265.   set SureWD to window (CDfilePath & "WDS" & PCDEL & "NC_SURE.GEO")
  266.   set the rect of SureWD to rect(the stageLeft + 286, the stageTop + 87, the stageLeft + 526, the stageTop + 199)
  267.   set the titleVisible of SureWD to 0
  268.   set the modal of SureWD to 1
  269.   open(SureWD)
  270. end
  271.  
  272. on CloseSureWD
  273.   global SureWD
  274.   if objectp(SureWD) then
  275.     forget(SureWD)
  276.   end if
  277. end
  278.  
  279. on ClearAllTags
  280.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST, TagWD
  281.   CloseSureWD()
  282.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & "UNMARK")
  283.   set TAGS_LIST to []
  284.   set TAGS_TITLES to EMPTY
  285.   set TAGS_DATA to EMPTY
  286.   tell TagWD
  287.     UpdateFields()
  288.     PlaceMySlider()
  289.     init()
  290.   end tell
  291.   updateStage()
  292. end
  293.  
  294. on CloseTagWindow
  295.   global TagWD
  296.   if objectp(TagWD) then
  297.     forget(TagWD)
  298.   end if
  299.   set the cursor of sprite 48 to 0
  300.   tell the stage
  301.     continue()
  302.   end tell
  303. end
  304.  
  305. on GoTagMovie
  306.   go("Init" & Get_ScreenSubject(), Get_TagMovie())
  307. end
  308.  
  309. on Set_TagMovie theMovie
  310.   global TagMovie
  311.   set TagMovie to theMovie
  312. end
  313.  
  314. on Get_TagMovie
  315.   global TagMovie
  316.   return TagMovie
  317. end
  318.  
  319. on MarkScreen toMark
  320.   global CardTitles, TAGS_DATA, TAGS_TITLES, TAGS_LIST
  321.   set the castNum of sprite Get_MarkSprite() to the number of cast ("V_" & toMark)
  322.   set movieName to the movieName
  323.   if toMark = "MARK" then
  324.     setAt(TAGS_LIST, count(TAGS_LIST) + 1, movieName)
  325.     set LineNum to count(TAGS_LIST)
  326.     set TheTitle to item Get_CDcounter() of line integer(Get_CurrentTool()) of CardTitles
  327.     put TheTitle into line LineNum of TAGS_TITLES
  328.     put movieName into item 1 of line LineNum of TAGS_DATA
  329.     put Get_CurrentTool() into item 2 of line LineNum of TAGS_DATA
  330.     put Get_ScreenSubject() into item 3 of line LineNum of TAGS_DATA
  331.   else
  332.     set itemNum to getOne(TAGS_LIST, movieName)
  333.     deleteAt(TAGS_LIST, itemNum)
  334.     delete line itemNum of TAGS_TITLES
  335.     delete line itemNum of TAGS_DATA
  336.   end if
  337.   updateStage()
  338. end
  339.  
  340. on UpdateMark
  341.   global TAGS_LIST
  342.   set movieName to the movieName
  343.   if getOne(TAGS_LIST, movieName) then
  344.     set the castNum of sprite Get_MarkSprite() to the number of cast "V_MARK"
  345.   end if
  346. end
  347.  
  348. on HandleSound
  349.   global volumeWindow, CDfilePath, PCDEL
  350.   if objectp(volumeWindow) then
  351.     forget(volumeWindow)
  352.   end if
  353.   EnableBtn("SOUND", get_SOUNDSprite())
  354.   set volumeWindow to window (CDfilePath & "WDS" & PCDEL & "NC_VOL.GEO")
  355.   set the rect of volumeWindow to rect(the stageLeft + 445, the stageTop + 63, the stageLeft + 574, the stageTop + 126)
  356.   set the titleVisible of volumeWindow to 0
  357.   tell volumeWindow
  358.     RestoreSoundStatus()
  359.   end tell
  360.   open(volumeWindow)
  361. end
  362.  
  363. on handleQuit
  364.   global QuitWindow, CDfilePath, PCDEL
  365.   cursor(4)
  366.   if objectp(QuitWindow) then
  367.     forget(QuitWindow)
  368.   end if
  369.   set the cursor of sprite 48 to [400, 401]
  370.   set QuitWindow to window (CDfilePath & "WDS" & PCDEL & "NC_QUIT.GEO")
  371.   set the rect of QuitWindow to rect(the stageLeft + 162, the stageTop + 122, the stageLeft + 478, the stageTop + 358)
  372.   set the titleVisible of QuitWindow to 0
  373.   set the modal of QuitWindow to 1
  374.   open(QuitWindow)
  375. end
  376.  
  377. on handleHELP
  378.   EnableBtn("HELP", get_HELPSprite())
  379.   openHelpWd()
  380. end
  381.  
  382. on openHelpWd
  383.   global helpWD, lastFrame, CDfilePath, PCDEL
  384.   set the cursor of sprite 48 to [400, 401]
  385.   set helpWD to window (CDfilePath & "WDS" & PCDEL & "NC_HLP.GEO")
  386.   set the rect of helpWD to rect(the stageLeft + 62, the stageTop + 28, the stageLeft + 586, the stageTop + 444)
  387.   set the titleVisible of helpWD to 0
  388.   set the modal of helpWD to 1
  389.   open(helpWD)
  390.   set lastFrame to the frame
  391.   go("helpLoop")
  392. end
  393.  
  394. on closeHelpWd
  395.   global helpWD, lastFrame
  396.   set the cursor of sprite 48 to 0
  397.   forget(helpWD)
  398.   go(lastFrame)
  399. end
  400.  
  401. on HandleNEXT
  402.   GoNext()
  403.   EnableBtn("NEXT", get_NEXTSprite())
  404. end
  405.  
  406. on HandleBACK
  407.   if Get_NEXT() = 3 then
  408.     UpdateCursors(32, 0)
  409.     repeat with i = 13 to 16
  410.       set the puppet of sprite i to 0
  411.       UpdateCursors(i, 0)
  412.     end repeat
  413.   end if
  414.   EnableBtn("BACK", get_BACKSprite())
  415.   EnableBtn("NEXT", get_NEXTSprite())
  416.   Set_NEXT(1)
  417.   sound stop 2
  418.   go("start")
  419. end
  420.  
  421. on HandleGLOSSARY
  422.   global DicWindow
  423.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  424.   set the cursor of sprite 48 to [400, 401]
  425.   open(DicWindow)
  426.   tell the stage
  427.     pause()
  428.   end tell
  429.   tell DicWindow
  430.     go(2)
  431.   end tell
  432. end
  433.  
  434. on closeGLOSSARYwindow
  435.   set the cursor of sprite 48 to 0
  436.   continue()
  437. end
  438.  
  439. on closeNotePadWindow
  440.   set the cursor of sprite 48 to 0
  441.   continue()
  442. end
  443.  
  444. on HandleNOTEPAD
  445.   global NoteBookWindow, CDfilePath, PCDEL
  446.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  447.   set the cursor of sprite 48 to [400, 401]
  448.   if objectp(NoteBookWindow) then
  449.     forget(NoteBookWindow)
  450.   end if
  451.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  452.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  453.   set NBRect to the rect of NoteBookWindow
  454.   set x1 to getAt(NBRect, 1)
  455.   set y1 to getAt(NBRect, 2)
  456.   set x2 to getAt(NBRect, 3)
  457.   set y2 to getAt(NBRect, 4)
  458.   set the modal of NoteBookWindow to 1
  459.   set the windowType of NoteBookWindow to 2
  460.   set the titleVisible of window "NoteBook" to 0
  461.   open(NoteBookWindow)
  462. end
  463.  
  464. on createNoteBook
  465.   global NBPrintWindow, CDfilePath, PCDEL
  466.   if objectp(NBPrintWindow) then
  467.     forget(NBPrintWindow)
  468.   end if
  469.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  470.   set StageRect to the rect of the stage
  471.   set x1 to getAt(StageRect, 1)
  472.   set y1 to getAt(StageRect, 2)
  473.   set x2 to getAt(StageRect, 3)
  474.   set y2 to getAt(StageRect, 4)
  475.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  476.   set NBRect to the rect of NBPrintWindow
  477.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  478.   set the windowType of NBPrintWindow to 2
  479.   open(NBPrintWindow)
  480. end
  481.  
  482. on closePrintWindow
  483.   RestoreHilites()
  484. end
  485.  
  486. on closeQuitWindow
  487.   global QuitWindow
  488.   set the cursor of sprite 48 to 0
  489.   forget(QuitWindow)
  490.   continue()
  491. end
  492.  
  493. on leaveApplication
  494.   global QuitWindow, UsersData, TheBackWindow
  495.   forget(QuitWindow)
  496.   if the machineType <> 256 then
  497.   end if
  498.   quit()
  499. end
  500.  
  501. on keyDown
  502.   if not get_Disabled() then
  503.     if the commandDown and ((the key = "q") or (the key = ".")) then
  504.       handleQuit()
  505.     else
  506.       if (the keyCode = 76) or (the keyCode = 36) then
  507.         HandleNEXT()
  508.       else
  509.         pass()
  510.       end if
  511.     end if
  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, 4, 0, 0, 4, 3, 3, 3, 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, 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.