home *** CD-ROM | disk | FTP | other *** search
/ Spawn Figure Collection / spawn collection cd.iso / setup / data1.cab / Program_Executable_Files / gaibu.cst / 00001.ls next >
Encoding:
Text File  |  1998-01-19  |  2.0 KB  |  77 lines

  1. --âþꊧÉrÉbÉgÉ}ÉbÉvCDíTǵ
  2. on newBitmap newFile,sChannel
  3.   set the puppet of sprite(sChannel) to TRUE
  4.   set the filename of member 10 of castLib "gaibu" to newFile
  5.   set the member of sprite(sChannel) to member 10 of castLib"gaibu"
  6.   --  puppetTransition 41,2,40,FALSE
  7.   updateStage
  8. end
  9.  
  10. on newWave newFile
  11.   -- ├ó├╛├¬┼á├ç├ò├çb├çc├ç┬⌐├ç├ü├º╞Æ├¬├░├ç├¥├ç├ê
  12.   global gCDPATH
  13.   global SndMember
  14.   set SndMember = new(#sound,member 11 of castLib"gaibu")
  15.   set the name of SndMember = "sound"
  16.   set the fileName of SndMember to gCDPATH & "sound\"&newFile
  17. end
  18.  
  19. on newVideo newFile
  20.   -- ├ër├ëf├ëI├ç├ò├çb├çc├ç┬⌐├ç├ü├º╞Æ├¬├░├ç├¥├ç├ê
  21.   global gCDPATH
  22.   set VideoMember = new(#digitalVideo,member 12 of castLib"gaibu")
  23.   set the name of VideoMember = "video"
  24.   set the fileName of VideoMember to gCDPATH & "video\" & newFile
  25. end
  26.  
  27. on initVideo
  28.   global gMovLength
  29.   set gMovLength to the duration of member "video"
  30. end
  31.  
  32. on ChangeSound
  33.   global SndNumber
  34.   global SndList
  35.   --  PuppetSound 1,TRUE
  36.   set the SoundEnabled to FALSE
  37.   set SndNumber to SndNumber + 1
  38.   if SndNumber > count(SndList) then
  39.     set SndNumber to 1
  40.   end if
  41.   newWave getat(SndList,SndNumber)
  42.   set the SoundEnabled to TRUE
  43. end
  44.  
  45. on LoopSound
  46.   global SndOn
  47.   if (soundbusy(1) = 0) and (the SoundEnabled = TRUE) then
  48.     PuppetSound 1,TRUE
  49.     set the SoundEnabled to FALSE
  50.     set the SoundEnabled to TRUE
  51.   end if
  52. end
  53.  
  54. on SE channel,str
  55.   if the soundEnabled = TRUE then
  56.     puppetSound channel,str
  57.   end if
  58. end
  59.  
  60. on serchCD
  61.   repeat with Drive = 65 to 90
  62.     repeat with Nth = 1 to the maxInteger
  63.       set DriveString = numToChar(Drive) & ":\"
  64.       set NthFile = getNthFileNameInFolder(DriveString,Nth)
  65.       if NthFile = "YK_PC_001" then     -- CD ├ç├â├¡├£├çΓǪ├¼┬╕├ç┬í├ç╞Æ├ç┬ó├ç├ê├ët├ë@├ëC├ë├ú├ç┬¥├⌐w├¡├ï
  66.         return DriveString
  67.         exit repeat
  68.       end if
  69.       if NthFile = "" then 
  70.         exit repeat
  71.       end if
  72.     ├à@end repeat
  73.   end repeat
  74.   alert "├çb├çc├à|├çq├çn├çl├çΓäó├Ñ┬⌐├ç┬¼├ç┬⌐├ç├ï├çΓÇ╣├ç├╛├ç├Æ├ç┬╝├ç┬╡├ç├╜├àB├ëv├ë├º├ëO├ë├ó├ë├ä├ç┬¥├¿I├│├╛├ç┬╡├çΓÇ╣├ç├¥├àB"
  75.   quit;
  76. end
  77.