home *** CD-ROM | disk | FTP | other *** search
/ A Virtual Reality Guide to Texas / CD.iso / texdata / shared.cst / 00032.ls < prev    next >
Encoding:
Text File  |  1998-06-17  |  3.1 KB  |  147 lines

  1. --on goPrev
  2. --  Global gSectionPosition, gGoAction
  3. --  put "goPrev" into gGoAction
  4. --  if gSectionPosition = "First" then
  5. --    go marker(0)
  6. --  else if gSectionPosition= "Main" then
  7. --    RotateRight
  8. --    abort
  9. --  else
  10. --    go the frame - 1
  11. --  end if
  12. --end
  13. --
  14. --on goNext
  15. --  Global gSectionPosition, gGoAction
  16. --  put "goNext" into gGoAction
  17. --  if gSectionPosition = "Last" then
  18. --    go marker(1)
  19. --  else if gSectionPosition= "Main" then
  20. --    RotateLeft
  21. --    abort
  22. --  else
  23. --    go the frame + 1
  24. --  end if
  25. --  
  26. --end
  27. --
  28. --on goBack WithKey
  29. --  Global gSectionPosition, gGoAction
  30. --  put "goBack" into gGoAction
  31. --  if gSectionPosition = "Main" then
  32. --    
  33. --    if WithKey then
  34. --      
  35. --      if the movieName contains "Context" then
  36. --        goHome
  37. --      else
  38. --        ActivateBox
  39. --      end if
  40. --      
  41. --    else
  42. --      goHome
  43. --    end if
  44. --    
  45. --  else
  46. --    go "Main"
  47. --  end if
  48. --end
  49. --
  50. --on keyDown
  51. --  --  put the keyCode into MyCode
  52. --  --  if MyCode = 123 then goPrev
  53. --  --  if MyCode = 124 then goNext
  54. --  --  if the key = return then goBack(1)
  55. --  --  if the key = " " then TogglePause
  56. --  --  if MyCode =  53 then goHome
  57. --  --  put MyCode
  58. --end
  59. --
  60. --on ClearMusicLoop
  61. --  Global gRunIdleMusicLoop, gLoopNeedsStarting
  62. --  put "" into gRunIdleMusicLoop
  63. --  put false into gLoopNeedsStarting
  64. --  ClearMovieSync
  65. --end
  66. --
  67. --on ClearMovieSync
  68. --  Global gSyncableMovie
  69. --  put false into gSyncableMovie
  70. --end
  71. --
  72. --on GoMovie WhatMovie, whatFrame
  73. --  Global gPlayedAMovie, gProductDirection, gSyncableMovie
  74. --  put "" into gProductDirection
  75. --  ClearMusicLoop
  76. --  cursor 4
  77. --  PlaySync("Machine C 25%")
  78. --  ResetAudio
  79. --  ClearMovieSync
  80. --  
  81. --  if not voidP(whatFrame) then
  82. --    go frame whatFrame of movie WhatMovie
  83. --  else
  84. --    play movie WhatMovie
  85. --  end if
  86. --  
  87. --  put True into gPlayedAMovie
  88. --  cursor -1
  89. --end
  90. --
  91. --on goNextProduct
  92. --  Global gProductDirection
  93. --  put "Next" into gProductDirection
  94. --  EndPlay
  95. --end
  96. --
  97. --on goBackProduct
  98. --  Global gProductDirection
  99. --  put "Back" into gProductDirection
  100. --  EndPlay
  101. --end
  102. --
  103. --on EndPlay
  104. --  Cursor 4
  105. --  ResetAudio
  106. --  ClearMusicLoop
  107. --  Play done
  108. --  cursor -1
  109. --end
  110. --
  111. --on MovieIsPlaying
  112. --  put false into isRunning
  113. --  put the castnum of sprite 48 into MyCast
  114. --  if MyCast <> 0 then
  115. --    if the castType of MyCast = #DigitalVideo then
  116. --      if the movierate of sprite 48 then
  117. --        put true into isRunning
  118. --      end if
  119. --    end if
  120. --  end if
  121. --  return isRunning
  122. --end
  123. --
  124. --on Idle
  125. --  Global gRunIdleMusicLoop, gLoopNeedsStarting
  126. --  
  127. --  if gRunIdleMusicLoop <> "" and not voidP(gRunIdleMusicLoop) then
  128. --    if not SoundBusy(2) and gLoopNeedsStarting then
  129. --      --sound PlayFile 2, gRunIdleMusicLoop
  130. --    end if
  131. --  end if
  132. --  
  133. --  Global gNextBlink, gIndexPoint
  134. --  if the lastEvent > 300 and the moviename = "ticket.dir" then
  135. --    if the Ticks > gNextBlink then
  136. --      put 1001 into BaseCast
  137. --      put gIndexPoint + 1 into gIndexPoint
  138. --      if gIndexPoint > 12 then put 1 into gIndexPoint
  139. --      SetCast(46, BaseCast + gIndexPoint)
  140. --      put the ticks + 2 into gNextBlink
  141. --      
  142. --      UpdateStage
  143. --    end if
  144. --  end if
  145. --  
  146. --  cursor -1
  147. --end