home *** CD-ROM | disk | FTP | other *** search
/ <GEEK> 2 / GEEK2.ISO / pc / zero_bud.dxr / Internal_2_main.ls < prev    next >
Encoding:
Text File  |  1997-07-11  |  1.6 KB  |  84 lines

  1. global mainFolder, commonFolder, theLastactiveWindow, thisIsA_PC, FalskVideoObj, allVideos, zeroMIAW, origZeroBudgetWindowRect
  2.  
  3. on startMovie
  4.   macOrPC()
  5.   initZero()
  6.   set the visible of sprite 2 to 1
  7.   initIssueSpecific()
  8. end
  9.  
  10. on closeWindow
  11.   repeat with qVideo in allVideos
  12.     if objectp(qVideo) then
  13.       stopVideo(qVideo)
  14.     end if
  15.   end repeat
  16.   go(1)
  17.   forget(zeroMIAW)
  18.   set zeroMIAW to 0
  19. end
  20.  
  21. on openWindow
  22.   go(1)
  23.   updateStage()
  24.   continue()
  25.   if listp(allVideos) then
  26.     repeat with qVideo in allVideos
  27.       if objectp(qVideo) then
  28.         rewindVideo(qVideo)
  29.       end if
  30.     end repeat
  31.   end if
  32.   tell the stage
  33.     cursorNormal()
  34.   end tell
  35. end
  36.  
  37. on resizeWindow
  38.   set the rect of zeroMIAW to origZeroBudgetWindowRect
  39.   updateStage()
  40. end
  41.  
  42. on zoomWindow
  43.   set the rect of zeroMIAW to origZeroBudgetWindowRect
  44.   updateStage()
  45. end
  46.  
  47. on activateWindow
  48.   moveToFront(zeroMIAW)
  49.   updateStage()
  50.   tell the stage
  51.     cursorNormal()
  52.   end tell
  53.   set theLastactiveWindow to zeroMIAW
  54.   continue()
  55. end
  56.  
  57. on initZero
  58.   go(1)
  59.   set zeroMIAW to the activeWindow
  60.   set origZeroBudgetWindowRect to the rect of zeroMIAW
  61.   if thisIsA_PC then
  62.     repeat with i = 29 to 34
  63.       set the visible of sprite i to 0
  64.     end repeat
  65.     PCMenuINIT()
  66.   end if
  67.   set theLastactiveWindow to zeroMIAW
  68.   moveToFront(zeroMIAW)
  69. end
  70.  
  71. on openMovie windowName, fileName
  72.   if the visible of window windowName then
  73.     exit
  74.   end if
  75.   if not length(the fileName of window windowName) then
  76.     set the fileName of window windowName to mainFolder & fileName
  77.   end if
  78.   tell the stage
  79.     cursorClock()
  80.   end tell
  81.   set the windowType of window windowName to 8
  82.   open(window windowName)
  83. end
  84.