home *** CD-ROM | disk | FTP | other *** search
/ Passport / passport.iso / pc / passport / help.dxr / Script_1.ls < prev    next >
Encoding:
Text File  |  1998-02-02  |  1.8 KB  |  84 lines

  1. on prepareMovie
  2.   global gHelpStarted
  3.   tell the stage
  4.     getOption("HelpStarted")
  5.   end tell
  6.   if the result <> "TRUE" then
  7.     puppetSprite(40, 1)
  8.     set the memberNum of sprite 40 to 2
  9.     tell the stage
  10.       setOption("HelpStarted", "TRUE")
  11.     end tell
  12.   end if
  13.   set gHelpStarted to 1
  14.   set the puppet of sprite 5 to 1
  15.   repeat with i in [32, 33, 37, 38]
  16.     set the cursor of sprite i to [50, 51]
  17.   end repeat
  18.   set the volume of sound 2 to 0
  19. end
  20.  
  21. on startMovie
  22.   global myStat
  23.   if the puppet of sprite 40 then
  24.     exit
  25.   end if
  26.   tell the stage
  27.     getProperty("the moviename")
  28.   end tell
  29.   set MovName to char 1 to offset(".", the result) - 1 of the result
  30.   tell the stage
  31.     getProperty("the frame")
  32.   end tell
  33.   set Frm to the result
  34.   case MovName of
  35.     "Topics":
  36.       go(3)
  37.     "Basics", "Grammar":
  38.       go(5)
  39.     "Alphabet", "Calendar", "Family", "Colours", "Numbers", "Time":
  40.       go(6)
  41.     "Words":
  42.       if word 1 of myStat = "Basics" then
  43.         if word 2 of myStat = "W" then
  44.           go(7)
  45.         else
  46.           go(8)
  47.         end if
  48.       else
  49.         if word 2 of myStat = "W" then
  50.           go(10)
  51.         else
  52.           go(11)
  53.         end if
  54.       end if
  55.     "Dialog":
  56.       tell the stage
  57.         getProperty("label(" & QUOTE & "comic" & QUOTE & ")")
  58.       end tell
  59.       if Frm < the result then
  60.         go(13)
  61.       else
  62.         go(14)
  63.       end if
  64.     otherwise:
  65.       if MovName contains "Town" then
  66.         go(4)
  67.       else
  68.         tell the stage
  69.           GetTopic(MovName)
  70.         end tell
  71.         if the result <> "00" then
  72.           tell the stage
  73.             getProperty("label(" & QUOTE & "Info" & QUOTE & ")")
  74.           end tell
  75.           if (the result = 0) or (Frm < the result) then
  76.             go(9)
  77.           else
  78.             go(15)
  79.           end if
  80.         end if
  81.       end if
  82.   end case
  83. end
  84.