home *** CD-ROM | disk | FTP | other *** search
/ SKIP - The Laundry Guide / LEVER_CD.iso / lever / tvmain.dir / 00047.ls < prev    next >
Encoding:
Text File  |  1997-02-21  |  2.9 KB  |  88 lines

  1. on popupcode
  2.   global gFromFrame, gOldLine, gLowlightColor, languagechosen
  3.   set the member of sprite 47 to member "TVMAINBanner" of castLib languagechosen
  4.   set the ink of sprite 47 to 36
  5.   set the locH of sprite 47 to 6
  6.   set the locV of sprite 47 to 456
  7.   updateStage()
  8.   set the blend of sprite 44 to 25
  9.   set the visible of sprite 40 to 0
  10.   set the visible of sprite 48 to 0
  11.   ContentsStop()
  12. end
  13.  
  14. on stopvideo
  15.   unloadMember(the name of the member of sprite 37)
  16.   set the movieRate of sprite 37 to 0
  17.   set the visible of sprite 37 to 0
  18.   updateStage()
  19.   set the visible of sprite 23 to 0
  20. end
  21.  
  22. on playvideo videoname
  23.   global framecount, firstMovieRate
  24.   set valueEx to videoname & "year"
  25.   set the member of sprite 23 to member valueEx
  26.   set the visible of sprite 23 to 1
  27.   set framecount to 0
  28.   set firstMovieRate to -1
  29.   if the castLibNum of sprite 37 = 1 then
  30.     stopvideo()
  31.     set the castLibNum of sprite 37 to 0
  32.   end if
  33.   if the castLibNum of sprite 37 = 0 then
  34.     set the visible of sprite 37 to 1
  35.     puppetSprite(37, 1)
  36.     set the member of sprite 37 to member videoname
  37.     set the locH of sprite 37 to 357
  38.     set the locV of sprite 37 to 302
  39.     set the volume of sprite 37 to 157
  40.     updateStage()
  41.     set the movieRate of sprite 37 to 1
  42.     set the visible of sprite 4 to 1
  43.     set the visible of sprite 5 to 0
  44.     set the visible of sprite 6 to 1
  45.   else
  46.     nothing()
  47.   end if
  48.   cursor(0)
  49.   set the visible of sprite 23 to 1
  50. end
  51.  
  52. on stopnonmovie
  53.   repeat with count = 4 to 6
  54.     puppetSprite(count, 0)
  55.   end repeat
  56.   puppetSprite(12, 0)
  57. end
  58.  
  59. on startnonmovie
  60.   global gWindowHandle, gDevType, gMoovName, movieName, languagechosen
  61.   set gDevType to EMPTY
  62.   set gMoovName to EMPTY
  63.   set movieName to EMPTY
  64.   set the text of field "tvindia" to the text of field "tvindia" of castLib languagechosen
  65.   set the text of field "tvuk" to the text of field "tvuk" of castLib languagechosen
  66.   set the text of field "tvfrance" to the text of field "tvfrance" of castLib languagechosen
  67.   set the text of field "tvcanada" to the text of field "tvcanada" of castLib languagechosen
  68.   set the text of field "tvchina" to the text of field "tvchina" of castLib languagechosen
  69.   set the text of field "tvyemen" to the text of field "tvyemen" of castLib languagechosen
  70.   set the text of field "tvecuador" to the text of field "tvecuador" of castLib languagechosen
  71.   set the text of field "tvgulf" to the text of field "tvgulf" of castLib languagechosen
  72.   set the text of field "tvsrilanka" to the text of field "tvsrilanka" of castLib languagechosen
  73.   set the text of field "tvpoland" to the text of field "tvpoland" of castLib languagechosen
  74. end
  75.  
  76. on checkcountrys
  77.   global lastrollover, clickonCountry
  78.   repeat with x = 12 to 21
  79.     if the castNum of sprite x <> 0 then
  80.       if rollOver(x) then
  81.         set the foreColor of member the castNum of sprite x to 9
  82.         next repeat
  83.       end if
  84.       set the foreColor of member the castNum of sprite x to 16
  85.     end if
  86.   end repeat
  87. end
  88.