home *** CD-ROM | disk | FTP | other *** search
/ Toy Story Multimedia Press Kit (Mac) / ToyStorycdrom.img / shared.dxr / 00950.ls next >
Encoding:
Text File  |  1995-07-30  |  5.8 KB  |  233 lines

  1. on startMovie
  2.   global downloadList, textList, multi, numPhotos
  3.   set downloadList to EMPTY
  4.   set textList to "0000000000000"
  5.   if multi <> 1 then
  6.     set the colorDepth to 8
  7.   end if
  8.   if multi <> 1 then
  9.     set the colorDepth to 16
  10.   end if
  11.   if (multi <> 1) and (the colorDepth < 16) then
  12.     set the colorDepth to 32
  13.   end if
  14.   if the machineType = 256 then
  15.     puppetSprite(9, 1)
  16.   end if
  17. end
  18.  
  19. on goTo theSection
  20.   cursor(4)
  21.   puppetSprite(10, 0)
  22.   if the castNum of sprite 11 > 0 then
  23.     if the castType of cast the castNum of sprite 11 = #text then
  24.       put " " into field the castNum of sprite 11
  25.     end if
  26.   end if
  27.   if the castNum of sprite 10 > 0 then
  28.     if the castType of cast the castNum of sprite 10 = #digitalVideo then
  29.       set the movieRate of sprite 10 to 0
  30.     end if
  31.   end if
  32.   updateStage()
  33.   go(theSection)
  34.   cursor(-1)
  35. end
  36.  
  37. on checkHelp
  38.   set x to 0
  39.   set n to the mouseCast
  40.   if (n >= 2) and (n <= 7) then
  41.     set x to 1
  42.   end if
  43.   if n = 5 then
  44.     set x to 18
  45.   end if
  46.   if n = 8 then
  47.     set x to 20
  48.   end if
  49.   if n = 10 then
  50.     set x to 2
  51.   end if
  52.   if n = 24 then
  53.     set x to 3
  54.   end if
  55.   if n = 25 then
  56.     set x to 4
  57.   end if
  58.   if n = 27 then
  59.     set x to 2
  60.   end if
  61.   if (n >= 28) and (n <= 39) then
  62.     set x to 5
  63.   end if
  64.   if (n >= 55) and (n <= 126) then
  65.     set x to 6
  66.   end if
  67.   if (n >= 127) and (n <= 198) then
  68.     set x to 7
  69.   end if
  70.   if (n >= 199) and (n <= 211) then
  71.     set x to 8
  72.   end if
  73.   if (n >= 212) and (n <= 223) then
  74.     set x to 9
  75.   end if
  76.   if (n >= 289) and (n <= 293) then
  77.     set x to 10
  78.   end if
  79.   if n = 294 then
  80.     set x to 11
  81.   end if
  82.   if n = 295 then
  83.     set x to 19
  84.   end if
  85.   if (n >= 298) and (n <= 309) then
  86.     set x to 12
  87.   end if
  88.   if (n >= 310) and (n <= 321) then
  89.     set x to 13
  90.   end if
  91.   if (n >= 322) and (n <= 333) then
  92.     set x to 14
  93.   end if
  94.   if n = 334 then
  95.     set x to 15
  96.   end if
  97.   if n = 335 then
  98.     set x to 16
  99.   end if
  100.   if n = 336 then
  101.     set x to 17
  102.   end if
  103.   if x > 0 then
  104.     put line x of field 23 into field 25
  105.   end if
  106. end
  107.  
  108. on setBio
  109.   set the castNum of sprite 10 to the clickOn + 16
  110.   set the text of cast 27 to the text of cast (the clickOn - 1)
  111.   updateStage()
  112. end
  113.  
  114. on setDownloadMarkers thePage
  115.   global downloadList, numPhotos
  116.   puppetSprite(48, 1)
  117.   repeat with x = 1 to the number of items in downloadList
  118.     set n to integer(item x of downloadList) - (numPhotos * thePage)
  119.     if (n < 1) or (n > numPhotos) then
  120.       next repeat
  121.     end if
  122.     set the locH of sprite 48 to the locH of sprite (n + 11) - (the width of sprite 48 / 2)
  123.     set the locV of sprite 48 to the locV of sprite (n + 11) - (the width of sprite 48 / 2)
  124.     updateStage()
  125.   end repeat
  126.   puppetSprite(48, 0)
  127. end
  128.  
  129. on checkPhoto
  130.   set theMouseCast to the mouseCast
  131.   if (theMouseCast > 54) and (theMouseCast < 127) then
  132.     set Q to line theMouseCast - 54 of field 26
  133.     repeat with x = 1 to the number of items in Q
  134.       put item x of Q into line x of field 24
  135.     end repeat
  136.   else
  137.     put EMPTY into field 24
  138.   end if
  139. end
  140.  
  141. on addDownload
  142.   global downloadList
  143.   set n to the castNum of sprite 1 - 126
  144.   repeat with x = 1 to the number of items in downloadList
  145.     if integer(item x of downloadList) = n then
  146.       beep()
  147.       exit
  148.     end if
  149.   end repeat
  150.   if downloadList <> EMPTY then
  151.     put "," & the castNum of sprite 1 - 126 after downloadList
  152.   else
  153.     put n after downloadList
  154.   end if
  155. end
  156.  
  157. on setPhoto
  158.   go(the frame + the clickOn - 11)
  159. end
  160.  
  161. on setFilm
  162.   cursor(4)
  163.   set the castNum of sprite 10 to the clickOn + 188
  164.   updateStage()
  165.   set the movieTime of sprite 10 to 0
  166.   set the movieRate of sprite 10 to 1
  167.   cursor(-1)
  168. end
  169.  
  170. on setSound
  171.   cursor(4)
  172.   set the castNum of sprite 10 to the clickOn + 200
  173.   updateStage()
  174.   set the movieTime of sprite 10 to 0
  175.   set the movieRate of sprite 10 to 1
  176.   cursor(-1)
  177. end
  178.  
  179. on startDownload
  180.   global downloadList, textList
  181.   put "Folow the directons to begin downloading files to your hard drive" into field "helpText"
  182.   updateStage()
  183.   if (downloadList <> EMPTY) or (textList <> "0000000000000") then
  184.     set theTime to the time
  185.     repeat with x = 1 to the number of chars in theTime
  186.       if char x of theTime = ":" then
  187.         put ";" into char x of theTime
  188.       end if
  189.     end repeat
  190.     set theFile to FileIO(mnew, "?write", the date && theTime && "text")
  191.     if theFile = -43 then
  192.       exit
  193.     end if
  194.     go(the frame + 1)
  195.     updateStage()
  196.     if downloadList <> EMPTY then
  197.       theFile(mWriteString, "the folowing is a list of ImagePack files and asociated information" & RETURN)
  198.       set theSavePath to theFile(mFileName)
  199.       set the itemDelimiter to ":"
  200.       delete item the number of items in theSavePath of theSavePath
  201.       set the itemDelimiter to ","
  202.       set theCopyPath to the moviePath & "HI_RES:"
  203.       repeat with x = 1 to the number of items in downloadList
  204.         cursor(4)
  205.         set n to integer(item x of downloadList)
  206.         set theCopyFile to getNthFileNameInFolder(theCopyPath, n)
  207.         set photoInfo to line n of field 26
  208.         theFile(mWriteString, theCopyFile & " -- " && photoInfo & RETURN)
  209.         put "  DOWNLOADING please wait -" & x & " of " & the number of items in downloadList into field "helpInfo"
  210.         FileCopy(theCopyPath & theCopyFile, theSavePath, "dontShowProgress")
  211.       end repeat
  212.     end if
  213.     theFile(mWriteString, "---------------------------------------" & RETURN & RETURN)
  214.     if textList contains "1" then
  215.       repeat with x = 1 to 13
  216.         if char x of textList = "1" then
  217.           theFile(mWriteString, field integer(x + 9) & RETURN & "---------------------------------------" & RETURN & RETURN)
  218.         end if
  219.       end repeat
  220.     end if
  221.     theFile(mdispose)
  222.   end if
  223. end
  224.  
  225. on keyDown
  226.   if (the key = "p") and (the commandDown = 1) and (the optionDown = 0) then
  227.     printFrom(the frame, the frame)
  228.   end if
  229.   if (the key = "p") and (the commandDown = 1) and (the optionDown = 1) then
  230.     printFrom(the frame, the frame, 50)
  231.   end if
  232. end
  233.