home *** CD-ROM | disk | FTP | other *** search
/ The Weather Channel - Everything Weather / TheWeatherChannel-EverythingWeather-Win31.iso / twcia / winters / shared.dxr / 00101.ls next >
Encoding:
Text File  |  1995-08-23  |  1.5 KB  |  66 lines

  1. on globalButtonInit start, end
  2.   global lastChannel
  3.   set lastChannel to 0
  4.   repeat with i = start to end
  5.     puppetSprite(i, 1)
  6.   end repeat
  7. end
  8.  
  9. on freeSprites start, end
  10.   repeat with i = start to end
  11.     puppetSprite(i, 0)
  12.   end repeat
  13. end
  14.  
  15. on globalRollOver start, end
  16.   global lastChannel, backString, movieLocation
  17.   if lastChannel <> 0 then
  18.     if rollOver(lastChannel) then
  19.       exit
  20.     else
  21.       set the castNum of sprite lastChannel to the castNum of sprite lastChannel - 1
  22.       set lastChannel to 0
  23.     end if
  24.   end if
  25.   repeat with i = start to end
  26.     if rollOver(i) then
  27.       set the castNum of sprite i to the castNum of sprite i + 1
  28.       updateStage()
  29.       set lastChannel to i
  30.       exit
  31.     end if
  32.   end repeat
  33. end
  34.  
  35. on showSearch
  36.   global searchWindow, CDPath
  37.   if objectp(searchWindow) then
  38.     forget(searchWindow)
  39.   end if
  40.   set searchRect to rect(88, 51, 552, 429)
  41.   set searchWindow to window "search"
  42.   set the rect of searchWindow to searchRect
  43.   set the fileName of searchWindow to CDPath & "search\search"
  44.   set the titleVisible of searchWindow to 0
  45.   set the modal of searchWindow to 1
  46.   if the castNum of sprite 16 <> 0 then
  47.     set the movieRate of sprite 16 to 0
  48.   end if
  49.   open(searchWindow)
  50. end
  51.  
  52. on link where
  53.   global searchWindow, linkString, backString, movieLocation
  54.   if objectp(searchWindow) then
  55.     forget(searchWindow)
  56.   end if
  57.   if where = EMPTY then
  58.     exit
  59.   end if
  60.   set linkString to where
  61.   set backString to movieLocation
  62.   set movieLocation to linkString
  63.   clearPuppets()
  64.   setLink()
  65. end
  66.