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

  1. on startMovie
  2.   global TZwd
  3.   sound stop 2
  4.   cursor([402, 403])
  5.   set the cursor of sprite 22 to [406, 407]
  6.   set the cursor of sprite 20 to [404, 405]
  7.   set the cursor of sprite 14 to [404, 405]
  8.   set the cursor of sprite 3 to [404, 405]
  9.   set the puppet of sprite 3 to 1
  10.   puppetSprite(get_find2HiliteSprite(), 1)
  11.   puppetSprite(get_find2ThumbSprite(), 1)
  12.   set TZwd to "open"
  13. end
  14.  
  15. on keyDown
  16.   if (the keyCode = 76) or (the keyCode = 36) then
  17.     set the castNum of sprite 22 to the number of cast "GO_D"
  18.     updateStage()
  19.     handleGO()
  20.   end if
  21. end
  22.  
  23. on UpdateSelection theText
  24.   global cardlist, find2Links, TotalData
  25.   set find2Links to EMPTY
  26.   put EMPTY into field "currScroll"
  27.   put EMPTY into field "ALL_DATA"
  28.   set save to the itemDelimiter
  29.   set the itemDelimiter to "#"
  30.   repeat with i = 1 to the number of lines in TotalData - 1
  31.     set theWord to item 1 of line i of TotalData
  32.     set theName to item 2 of line i of TotalData
  33.     set TheTitle to getaProp(cardlist, value("#" & theName))
  34.     set pNum to item 3 of line i of TotalData
  35.     set thekind to item 6 of line i of TotalData
  36.     if thekind = "faq" then
  37.       next repeat
  38.     end if
  39.     if thekind = "book" then
  40.       put theWord && "- BookMark" && pNum && "of" && TheTitle into line i of field "ALL_DATA"
  41.       next repeat
  42.     end if
  43.     if thekind = "tip" then
  44.       put theWord && "- Tip" && pNum && "of" && TheTitle into line i of field "ALL_DATA"
  45.       next repeat
  46.     end if
  47.     put theWord && "- Para." && pNum && "of" && TheTitle into line i of field "ALL_DATA"
  48.   end repeat
  49.   set the itemDelimiter to save
  50.   put theText into field "name"
  51.   init()
  52. end
  53.  
  54. on handleGO
  55.   global TotalData
  56.   set theInfo to line get_find2SelectedLine() of TotalData
  57.   set save to the itemDelimiter
  58.   set the itemDelimiter to "#"
  59.   set movieName to item 2 of theInfo
  60.   set toolNum to item 4 of theInfo
  61.   set subNum to item 5 of theInfo
  62.   set screenKind to item 6 of theInfo
  63.   set the itemDelimiter to save
  64.   set_IndexMovie(movieName & ".GEO")
  65.   tell the stage
  66.     SaveSeenScreens()
  67.   end tell
  68.   if screenKind <> "reg" then
  69.     Set_CurrentTool(toolNum)
  70.     Set_ScreenSubject(subNum)
  71.     set theVec to EMPTY
  72.     set theSub to integer(subNum) + 1
  73.     do("put line" && 1 && "of" && "get_ScreensTool" & toolNum & "()" && "into theVec")
  74.     Set_CurrentSnakeScreens(theVec)
  75.     do("put line" && 1 && "of" && "Get_WasInPathTool" & toolNum & "()" && "into theVec")
  76.     repeat with i = 1 to the number of items in theVec
  77.       put value(item i of theVec) into item i of theVec
  78.     end repeat
  79.     Set_SeenINPath(theVec)
  80.   end if
  81.   set the castNum of sprite 22 to the number of cast "GO"
  82.   if screenKind <> "reg" then
  83.     tell the stage
  84.       GoIndexMovie("tool")
  85.     end tell
  86.   else
  87.     tell the stage
  88.       GoIndexMovie("reg")
  89.     end tell
  90.   end if
  91. end
  92.  
  93. on set_IndexMovie theMoov
  94.   global IndexMovie
  95.   set IndexMovie to theMoov
  96. end
  97.  
  98. on Get_IndexMovie theMoov
  99.   global IndexMovie
  100.   return IndexMovie
  101. end
  102.  
  103. on switchButt spriteNum, castDown, macroName
  104.   set flag to 0
  105.   set SaveCast to the castNum of sprite spriteNum
  106.   set flag to swapCast(spriteNum, SaveCast, castDown)
  107.   repeat while the stillDown
  108.     set flag to swapCast(spriteNum, SaveCast, castDown)
  109.   end repeat
  110.   if flag = 1 then
  111.     do(macroName)
  112.   end if
  113. end
  114.  
  115. on swapCast spriteNum, SaveCast, castDown
  116.   if rollOver(spriteNum) then
  117.     set the castNum of sprite spriteNum to the number of cast castDown
  118.     updateStage()
  119.     return 1
  120.   else
  121.     set the castNum of sprite spriteNum to the number of cast SaveCast
  122.     updateStage()
  123.     return 0
  124.   end if
  125. end
  126.  
  127. on handleExit
  128.   tell the stage
  129.     CloseFind2Window()
  130.   end tell
  131. end
  132.  
  133. on Set_CurrData theField
  134.   global CurrData
  135.   set CurrData to theField
  136. end
  137.  
  138. on Get_CurrData
  139.   global CurrData
  140.   return CurrData
  141. end
  142.  
  143. on Set_ScreenSubject theNum
  144.   global ScreenSubject
  145.   set ScreenSubject to theNum
  146. end
  147.  
  148. on Get_ScreenSubject
  149.   global ScreenSubject
  150.   return ScreenSubject
  151. end
  152.  
  153. on Set_ScreensTool01 theMode
  154.   global ScreensTool01
  155.   set ScreensTool01 to theMode
  156. end
  157.  
  158. on Get_ScreensTool01
  159.   global ScreensTool01
  160.   return ScreensTool01
  161. end
  162.  
  163. on Set_ScreensTool02 theMode
  164.   global ScreensTool02
  165.   set ScreensTool02 to theMode
  166. end
  167.  
  168. on Get_ScreensTool02
  169.   global ScreensTool02
  170.   return ScreensTool02
  171. end
  172.  
  173. on Set_ScreensTool03 theMode
  174.   global ScreensTool03
  175.   set ScreensTool03 to theMode
  176. end
  177.  
  178. on Get_ScreensTool03
  179.   global ScreensTool03
  180.   return ScreensTool03
  181. end
  182.  
  183. on Set_ScreensTool04 theMode
  184.   global ScreensTool04
  185.   set ScreensTool04 to theMode
  186. end
  187.  
  188. on Get_ScreensTool04
  189.   global ScreensTool04
  190.   return ScreensTool04
  191. end
  192.  
  193. on Set_ScreensTool05 theMode
  194.   global ScreensTool05
  195.   set ScreensTool05 to theMode
  196. end
  197.  
  198. on Get_ScreensTool05
  199.   global ScreensTool05
  200.   return ScreensTool05
  201. end
  202.  
  203. on Set_ScreensTool06 theMode
  204.   global ScreensTool06
  205.   set ScreensTool06 to theMode
  206. end
  207.  
  208. on Get_ScreensTool06
  209.   global ScreensTool06
  210.   return ScreensTool06
  211. end
  212.  
  213. on Set_ScreensTool07 theMode
  214.   global ScreensTool07
  215.   set ScreensTool07 to theMode
  216. end
  217.  
  218. on Get_ScreensTool07
  219.   global ScreensTool07
  220.   return ScreensTool07
  221. end
  222.  
  223. on Set_ScreensTool08 theMode
  224.   global ScreensTool08
  225.   set ScreensTool08 to theMode
  226. end
  227.  
  228. on Get_ScreensTool08
  229.   global ScreensTool08
  230.   return ScreensTool08
  231. end
  232.  
  233. on Set_ScreensTool09 theMode
  234.   global ScreensTool09
  235.   set ScreensTool09 to theMode
  236. end
  237.  
  238. on Get_ScreensTool09
  239.   global ScreensTool09
  240.   return ScreensTool09
  241. end
  242.  
  243. on Set_ScreensTool10 theMode
  244.   global ScreensTool10
  245.   set ScreensTool10 to theMode
  246. end
  247.  
  248. on Get_ScreensTool10
  249.   global ScreensTool10
  250.   return ScreensTool10
  251. end
  252.  
  253. on Set_ScreensTool11 theMode
  254.   global ScreensTool11
  255.   set ScreensTool11 to theMode
  256. end
  257.  
  258. on Get_ScreensTool11
  259.   global ScreensTool11
  260.   return ScreensTool11
  261. end
  262.  
  263. on Set_ScreensTool12 theMode
  264.   global ScreensTool12
  265.   set ScreensTool12 to theMode
  266. end
  267.  
  268. on Get_ScreensTool12
  269.   global ScreensTool12
  270.   return ScreensTool12
  271. end
  272.  
  273. on Set_ScreensTool13 theMode
  274.   global ScreensTool13
  275.   set ScreensTool13 to theMode
  276. end
  277.  
  278. on Get_ScreensTool13
  279.   global ScreensTool13
  280.   return ScreensTool13
  281. end
  282.  
  283. on Set_WasInPathTool01 theMode
  284.   global WasInPathTool01
  285.   set WasInPathTool01 to theMode
  286. end
  287.  
  288. on Get_WasInPathTool01
  289.   global WasInPathTool01
  290.   return WasInPathTool01
  291. end
  292.  
  293. on Set_WasInPathTool02 theMode
  294.   global WasInPathTool02
  295.   set WasInPathTool02 to theMode
  296. end
  297.  
  298. on Get_WasInPathTool02
  299.   global WasInPathTool02
  300.   return WasInPathTool02
  301. end
  302.  
  303. on Set_WasInPathTool03 theMode
  304.   global WasInPathTool03
  305.   set WasInPathTool03 to theMode
  306. end
  307.  
  308. on Get_WasInPathTool03
  309.   global WasInPathTool03
  310.   return WasInPathTool03
  311. end
  312.  
  313. on Set_WasInPathTool04 theMode
  314.   global WasInPathTool04
  315.   set WasInPathTool04 to theMode
  316. end
  317.  
  318. on Get_WasInPathTool04
  319.   global WasInPathTool04
  320.   return WasInPathTool04
  321. end
  322.  
  323. on Set_WasInPathTool05 theMode
  324.   global WasInPathTool05
  325.   set WasInPathTool05 to theMode
  326. end
  327.  
  328. on Get_WasInPathTool05
  329.   global WasInPathTool05
  330.   return WasInPathTool05
  331. end
  332.  
  333. on Set_WasInPathTool06 theMode
  334.   global WasInPathTool06
  335.   set WasInPathTool06 to theMode
  336. end
  337.  
  338. on Get_WasInPathTool06
  339.   global WasInPathTool06
  340.   return WasInPathTool06
  341. end
  342.  
  343. on Set_WasInPathTool07 theMode
  344.   global WasInPathTool07
  345.   set WasInPathTool07 to Get_SeenINPath()
  346. end
  347.  
  348. on Get_WasInPathTool07
  349.   global WasInPathTool07
  350.   return WasInPathTool07
  351. end
  352.  
  353. on Set_WasInPathTool08 theMode
  354.   global WasInPathTool08
  355.   set WasInPathTool08 to Get_SeenINPath()
  356. end
  357.  
  358. on Get_WasInPathTool08
  359.   global WasInPathTool08
  360.   return WasInPathTool08
  361. end
  362.  
  363. on Set_WasInPathTool09 theMode
  364.   global WasInPathTool09
  365.   set WasInPathTool09 to Get_SeenINPath()
  366. end
  367.  
  368. on Get_WasInPathTool09
  369.   global WasInPathTool09
  370.   return WasInPathTool09
  371. end
  372.  
  373. on Set_WasInPathTool10 theMode
  374.   global WasInPathTool10
  375.   set WasInPathTool10 to Get_SeenINPath()
  376. end
  377.  
  378. on Get_WasInPathTool10
  379.   global WasInPathTool10
  380.   return WasInPathTool10
  381. end
  382.  
  383. on Set_WasInPathTool11 theMode
  384.   global WasInPathTool11
  385.   set WasInPathTool11 to Get_SeenINPath()
  386. end
  387.  
  388. on Get_WasInPathTool11
  389.   global WasInPathTool11
  390.   return WasInPathTool11
  391. end
  392.  
  393. on Set_WasInPathTool12 theMode
  394.   global WasInPathTool12
  395.   set WasInPathTool12 to Get_SeenINPath()
  396. end
  397.  
  398. on Get_WasInPathTool12
  399.   global WasInPathTool12
  400.   return WasInPathTool12
  401. end
  402.  
  403. on Set_WasInPathTool13 theMode
  404.   global WasInPathTool13
  405.   set WasInPathTool13 to Get_SeenINPath()
  406. end
  407.  
  408. on Get_WasInPathTool13
  409.   global WasInPathTool13
  410.   return WasInPathTool13
  411. end
  412.  
  413. on Set_CurrentTool theMode
  414.   global CurrentTool
  415.   set CurrentTool to theMode
  416. end
  417.  
  418. on Get_CurrentTool
  419.   global CurrentTool
  420.   return CurrentTool
  421. end
  422.  
  423. on Set_CurrentSnakeScreens theMode
  424.   global CurrentSnakeScreens
  425.   set CurrentSnakeScreens to theMode
  426. end
  427.  
  428. on Get_CurrentSnakeScreens
  429.   global CurrentSnakeScreens
  430.   return CurrentSnakeScreens
  431. end
  432.  
  433. on Set_SeenINPath theNum, theItem
  434.   global SEENINPath
  435.   if paramCount() = 2 then
  436.     put theNum into item theItem of SEENINPath
  437.   else
  438.     set SEENINPath to theNum
  439.   end if
  440. end
  441.  
  442. on Get_SeenINPath theItem
  443.   global SEENINPath
  444.   if paramCount() = 1 then
  445.     return item theItem of SEENINPath
  446.   else
  447.     return SEENINPath
  448.   end if
  449. end
  450.