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

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