home *** CD-ROM | disk | FTP | other *** search
/ Pro One: Netcracker Netscape Navigator / ProOne: Netcracker Netscape Navigator.iso / pc / nc / nct11020.geo / 00033.ls < prev    next >
Encoding:
Text File  |  1997-03-19  |  18.1 KB  |  838 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.     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 & "SND11" & 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.   EnableBtn("BACK", get_BACKSprite())
  408.   EnableBtn("NEXT", get_NEXTSprite())
  409.   Set_NEXT(1)
  410.   sound stop 2
  411.   go("start")
  412. end
  413.  
  414. on HandleGLOSSARY
  415.   global DicWindow
  416.   EnableBtn("GLOSSARY", Get_GLOSSARYSprite())
  417.   set the cursor of sprite 48 to [400, 401]
  418.   open(DicWindow)
  419.   tell the stage
  420.     pause()
  421.   end tell
  422.   tell DicWindow
  423.     go(2)
  424.   end tell
  425. end
  426.  
  427. on closeGLOSSARYwindow
  428.   set the cursor of sprite 48 to 0
  429.   continue()
  430. end
  431.  
  432. on closeNotePadWindow
  433.   set the cursor of sprite 48 to 0
  434.   continue()
  435. end
  436.  
  437. on HandleNOTEPAD
  438.   global NoteBookWindow, CDfilePath, PCDEL
  439.   EnableBtn("NOTEPAD", Get_NOTEPADSprite())
  440.   set the cursor of sprite 48 to [400, 401]
  441.   if objectp(NoteBookWindow) then
  442.     forget(NoteBookWindow)
  443.   end if
  444.   set NoteBookWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PAD.GEO")
  445.   set the rect of NoteBookWindow to rect(the stageLeft + 7, the stageTop + 247, the stageLeft + 209, the stageTop + 419)
  446.   set NBRect to the rect of NoteBookWindow
  447.   set x1 to getAt(NBRect, 1)
  448.   set y1 to getAt(NBRect, 2)
  449.   set x2 to getAt(NBRect, 3)
  450.   set y2 to getAt(NBRect, 4)
  451.   set the modal of NoteBookWindow to 1
  452.   set the windowType of NoteBookWindow to 2
  453.   set the titleVisible of window "NoteBook" to 0
  454.   open(NoteBookWindow)
  455. end
  456.  
  457. on createNoteBook
  458.   global NBPrintWindow, CDfilePath, PCDEL
  459.   if objectp(NBPrintWindow) then
  460.     forget(NBPrintWindow)
  461.   end if
  462.   set NBPrintWindow to window (CDfilePath & "WDS" & PCDEL & "NC_PRINT.GEO")
  463.   set StageRect to the rect of the stage
  464.   set x1 to getAt(StageRect, 1)
  465.   set y1 to getAt(StageRect, 2)
  466.   set x2 to getAt(StageRect, 3)
  467.   set y2 to getAt(StageRect, 4)
  468.   set the rect of NBPrintWindow to rect(x1, y1, x1 + 640, y1 + 480)
  469.   set NBRect to the rect of NBPrintWindow
  470.   set the fileName of NBPrintWindow to "Auto Page SetUp"
  471.   set the windowType of NBPrintWindow to 2
  472.   open(NBPrintWindow)
  473. end
  474.  
  475. on closePrintWindow
  476.   RestoreHilites()
  477. end
  478.  
  479. on closeQuitWindow
  480.   global QuitWindow
  481.   set the cursor of sprite 48 to 0
  482.   forget(QuitWindow)
  483.   continue()
  484. end
  485.  
  486. on leaveApplication
  487.   global QuitWindow, UsersData, TheBackWindow
  488.   forget(QuitWindow)
  489.   if the machineType <> 256 then
  490.   end if
  491.   quit()
  492. end
  493.  
  494. on keyDown
  495.   if not get_Disabled() then
  496.     if the commandDown and ((the key = "q") or (the key = ".")) then
  497.       handleQuit()
  498.     else
  499.       if (the keyCode = 76) or (the keyCode = 36) then
  500.         HandleNEXT()
  501.       else
  502.         pass()
  503.       end if
  504.     end if
  505.   else
  506.     pass()
  507.   end if
  508. end
  509.  
  510. on CheckOpenWindow
  511.   global volumeWindow
  512.   if objectp(volumeWindow) then
  513.     forget(volumeWindow)
  514.     continue()
  515.   end if
  516. end
  517.  
  518. on CheckRollOver
  519.   if rollOver(get_IndexSprite()) then
  520.     set the castNum of sprite get_NavigatorHL() to the number of cast "Index-HL"
  521.     set Hloc to the locH of sprite get_IndexSprite()
  522.     set Vloc to the locV of sprite get_IndexSprite()
  523.   else
  524.     if rollOver(get_FindSprite()) then
  525.       set the castNum of sprite get_NavigatorHL() to the number of cast "Find-HL"
  526.       set Hloc to the locH of sprite get_FindSprite()
  527.       set Vloc to the locV of sprite get_FindSprite()
  528.     else
  529.       if rollOver(Get_TagWdSprite()) then
  530.         set the castNum of sprite get_NavigatorHL() to the number of cast "TagWD-HL"
  531.         set Hloc to the locH of sprite Get_TagWdSprite()
  532.         set Vloc to the locV of sprite Get_TagWdSprite()
  533.       else
  534.         set Hloc to EMPTY
  535.       end if
  536.     end if
  537.   end if
  538.   if Hloc <> EMPTY then
  539.     set the locH of sprite get_NavigatorHL() to Hloc
  540.     set the locV of sprite get_NavigatorHL() to Vloc
  541.     set the visible of sprite get_NavigatorHL() to 1
  542.     updateStage()
  543.   else
  544.     set the visible of sprite get_NavigatorHL() to 0
  545.     updateStage()
  546.   end if
  547. end
  548.  
  549. on setDefaultCursor
  550.   set cursorList to getCursorList()
  551.   set counter to count(cursorList)
  552.   repeat with i = 1 to counter
  553.     set currItem to getAt(cursorList, i)
  554.     if currItem <> 0 then
  555.       set CursorCastNum to getCursor(currItem)
  556.       set the cursor of sprite i to [CursorCastNum, CursorCastNum + 1]
  557.     end if
  558.   end repeat
  559. end
  560.  
  561. on UpdateCursors theSp, theCursor
  562.   global cursorList
  563.   setAt(cursorList, theSp, theCursor)
  564.   if theCursor = 0 then
  565.     set the cursor of sprite theSp to theCursor
  566.   else
  567.     set CursorCastNum to getCursor(theCursor)
  568.     set the cursor of sprite theSp to [CursorCastNum, CursorCastNum + 1]
  569.   end if
  570. end
  571.  
  572. on setEmptyCursor
  573.   set cursorList to getCursorList()
  574.   set counter to count(cursorList)
  575.   repeat with i = 1 to counter
  576.     set currItem to getAt(cursorList, i)
  577.     if currItem <> 0 then
  578.       set the cursor of sprite i to 0
  579.       setAt(cursorList, i, 0)
  580.     end if
  581.   end repeat
  582. end
  583.  
  584. on setCursorTool int
  585.   global CursorTool
  586.   set CursorTool to int
  587. end
  588.  
  589. on initCursorCastNum
  590.   global CursorCastNum
  591.   set CursorCastNum to "400,402,404,406"
  592. end
  593.  
  594. on getCursor cursorNum
  595.   global CursorCastNum
  596.   return integer(item cursorNum of CursorCastNum)
  597. end
  598.  
  599. on initCursorList list
  600.   global cursorList
  601.   if list = 1 then
  602.     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]
  603.   end if
  604.   setDefaultCursor()
  605. end
  606.  
  607. on getCursorList
  608.   global cursorList
  609.   return cursorList
  610. end
  611.  
  612. on ___BTNS_HANDLERS___
  613. end
  614.  
  615. on switchButt spriteNum, castDown, macroName
  616.   if getRollName() <> EMPTY then
  617.     set spNum to EMPTY
  618.     do("put get_" & getRollName() & "Sprite() into spNum")
  619.     set the castNum of sprite spNum to the number of cast getRollName()
  620.     setRollName(EMPTY)
  621.   end if
  622.   set flag to 0
  623.   set SaveCast to the castNum of sprite spriteNum
  624.   set flag to swapCast(spriteNum, SaveCast, castDown)
  625.   repeat while the stillDown
  626.     set flag to swapCast(spriteNum, SaveCast, castDown)
  627.   end repeat
  628.   if flag = 1 then
  629.     sound stop 2
  630.     do(macroName)
  631.   end if
  632. end
  633.  
  634. on swapCast spriteNum, SaveCast, castDown
  635.   if rollOver(spriteNum) then
  636.     set the castNum of sprite spriteNum to the number of cast castDown
  637.     updateStage()
  638.     return 1
  639.   else
  640.     set the castNum of sprite spriteNum to the number of cast SaveCast
  641.     updateStage()
  642.     return 0
  643.   end if
  644. end
  645.  
  646. on DisableBtn btnName, btnSprite
  647.   set the castNum of sprite btnSprite to the number of cast (btnName & "_F")
  648. end
  649.  
  650. on EnableBtn btnName, btnSprite
  651.   set the castNum of sprite btnSprite to the number of cast btnName
  652. end
  653.  
  654. on setRollName theName
  655.   global RollName
  656.   set RollName to theName
  657. end
  658.  
  659. on getRollName
  660.   global RollName
  661.   return RollName
  662. end
  663.  
  664. on Set_NOTEPADSprite theSp
  665.   global NOTEPADSprite
  666.   set NOTEPADSprite to theSp
  667. end
  668.  
  669. on Get_NOTEPADSprite
  670.   global NOTEPADSprite
  671.   return NOTEPADSprite
  672. end
  673.  
  674. on Set_GLOSSARYSprite theSp
  675.   global GLOSSARYSprite
  676.   set GLOSSARYSprite to theSp
  677. end
  678.  
  679. on Get_GLOSSARYSprite
  680.   global GLOSSARYSprite
  681.   return GLOSSARYSprite
  682. end
  683.  
  684. on Set_SoundSprite theSp
  685.   global SoundSprite
  686.   set SoundSprite to theSp
  687. end
  688.  
  689. on get_SOUNDSprite
  690.   global SoundSprite
  691.   return SoundSprite
  692. end
  693.  
  694. on Set_HelpSprite theSp
  695.   global HelpSprite
  696.   set HelpSprite to theSp
  697. end
  698.  
  699. on get_HELPSprite
  700.   global HelpSprite
  701.   return HelpSprite
  702. end
  703.  
  704. on Set_NEXTSprite theSp
  705.   global NEXTSprite
  706.   set NEXTSprite to theSp
  707. end
  708.  
  709. on get_NEXTSprite
  710.   global NEXTSprite
  711.   return NEXTSprite
  712. end
  713.  
  714. on Set_BACKSprite theSp
  715.   global BACKSprite
  716.   set BACKSprite to theSp
  717. end
  718.  
  719. on get_BACKSprite
  720.   global BACKSprite
  721.   return BACKSprite
  722. end
  723.  
  724. on Set_NavigatorHL theSp
  725.   global NavigatorHL
  726.   set NavigatorHL to theSp
  727. end
  728.  
  729. on get_NavigatorHL
  730.   global NavigatorHL
  731.   return NavigatorHL
  732. end
  733.  
  734. on Set_IndexSprite theSp
  735.   global IndexSprite
  736.   set IndexSprite to theSp
  737. end
  738.  
  739. on get_IndexSprite
  740.   global IndexSprite
  741.   return IndexSprite
  742. end
  743.  
  744. on Set_TagWDSprite theSp
  745.   global TagWdSprite
  746.   set TagWdSprite to theSp
  747. end
  748.  
  749. on Get_TagWdSprite
  750.   global TagWdSprite
  751.   return TagWdSprite
  752. end
  753.  
  754. on Set_FindSprite theSp
  755.   global FindSprite
  756.   set FindSprite to theSp
  757. end
  758.  
  759. on get_FindSprite
  760.   global FindSprite
  761.   return FindSprite
  762. end
  763.  
  764. on Set_MainSprite theSp
  765.   global MainSprite
  766.   set MainSprite to theSp
  767. end
  768.  
  769. on get_MainSprite
  770.   global MainSprite
  771.   return MainSprite
  772. end
  773.  
  774. on Set_NEXT theSp
  775.   global next
  776.   set next to theSp
  777. end
  778.  
  779. on Get_NEXT
  780.   global next
  781.   return next
  782. end
  783.  
  784. on Set_PlayDub theMode
  785.   global PlayDub
  786.   set PlayDub to theMode
  787. end
  788.  
  789. on Get_PlayDub
  790.   global PlayDub
  791.   return PlayDub
  792. end
  793.  
  794. on Set_ScreenSubject theNum
  795.   global ScreenSubject
  796.   set ScreenSubject to theNum
  797. end
  798.  
  799. on Get_ScreenSubject
  800.   global ScreenSubject
  801.   return ScreenSubject
  802. end
  803.  
  804. on set_MarkSprite theNum
  805.   global MarkSprite
  806.   set MarkSprite to theNum
  807. end
  808.  
  809. on Get_MarkSprite
  810.   global MarkSprite
  811.   return MarkSprite
  812. end
  813.  
  814. on setTimer int
  815.   global theTime
  816.   set theTime to int
  817. end
  818.  
  819. on getTimer
  820.   global theTime
  821.   return theTime
  822. end
  823.  
  824. on DisableBTNS
  825.   global DisableMode
  826.   set DisableMode to 1
  827. end
  828.  
  829. on EnableBtns
  830.   global DisableMode
  831.   set DisableMode to 0
  832. end
  833.  
  834. on get_Disabled
  835.   global DisableMode
  836.   return DisableMode
  837. end
  838.