home *** CD-ROM | disk | FTP | other *** search
/ DIGIZINE 1 / DIGIZINE.BIN / main / sony / discman.dir / 00001_Script_1 next >
Text File  |  1995-09-24  |  2KB  |  81 lines

  1. --STARTMOVIE script
  2.  
  3. on STARTMOVIE 
  4.   global gRegCursor, gQTSoundChannel,gTimeAround
  5.   
  6. --  if not objectp(gRearWinObj) and the machineType <> 256 then
  7. --    global gRearWinObj
  8. --    
  9. --    openXlib "RearWindow.XObj"
  10. --    if objectP( gRearWinObj ) then gRearWinObj( mDispose )
  11. --    -- [ "M" indicates multiple monitors.]
  12. --    set gRearWinObj= RearWindow( mNew, "M" )
  13. --    set resultCode = value( gRearWinObj )
  14. --    if resultCode < 0 then
  15. --      alert "System Error trying to create the RearWindow" && string( resultCode )
  16. --    end if
  17. --    
  18. --    set resultCode = gRearWinObj( mPatToWindow,  -5 )
  19. --    set resultCode = value( gRearWinObj )
  20. --    if resultCode < 0 then
  21. --      alert "System Error trying to create the RearWindow" && string( resultCode )
  22. --    end if
  23. --  end if
  24.   
  25.   
  26.   cursor 4
  27.   set gQTSoundChannel to 44
  28.   set the movierate of sprite(gQTSoundChannel) = 0
  29.   
  30.   if the machineType = 256 then
  31.     set the searchPath to [the pathName&"AUDIO",the pathName&"QTM"]
  32.   else
  33.     set the searchPath to [the pathName&"AUDIO",the pathName&"QTM"]
  34.   end if
  35.   
  36.   set gTimeAround = false
  37.   
  38.   --pointer when over discman
  39.   set Z = the number of cast "PointerCursor"
  40.   set ZZ = the number of cast "PointerCursor" + 1
  41.   set the cursor of sprite(7) to [Z,ZZ]
  42.   
  43.   CHECKMEM
  44.   --  INITGLOBALS  --in the shared.DIR
  45.   INITMOVIE
  46. end
  47.  
  48.  
  49.  
  50. ---------
  51.  
  52. on CHECKMEM
  53.   if the freeBlock < (3.5 *1024) then
  54.     alert "Not enough memory!"
  55.     QUIT
  56.     abort
  57.   end if
  58. end
  59.  
  60. --------
  61.  
  62. on SETCURSORS
  63.   global gBusyCursor
  64.   set the cursor of sprite 3 = gBusyCursor
  65. end
  66.  
  67. --------
  68.  
  69. on FIRSTKARMIC
  70.   go "firstkarmic"
  71.   set the movietime of sprite(10) = 0
  72.   set the movierate of sprite(10) = 1
  73. end
  74.  
  75. --------
  76.  
  77. on SHOWKARMIC
  78.   puppetsound 0
  79.   go "koach"
  80. end
  81.