home *** CD-ROM | disk | FTP | other *** search
- --on mouseDown
- -- put "Interface 1 50%" into VolumeChangeSound
- -- put "Interface 3 25%" into MenuSelectSound
- -- put "Ting 25%" into MenuItemChangeSound
- -- put "Punch Clock 25%" into MenuOpensound
- -- put "disc out 2 25%" into MenuCloseSound
- --
- -- put the clickon into MySprite
- -- Put MySprite - 1 into MenuItemSprite
- -- put MySprite - 2 into MenuSprite
- -- put MySprite - 3 into VolumeSprite
- -- put the machineType = 256 into isIBM
- --
- -- if isIBM then
- -- put 1161 into Menucast
- --
- -- put 1170 into Nullcast
- -- put 1111 into VolumeStartCast
- -- put 20 into PixelsPerItem
- --
- -- put 15 into VolumeStartItem
- -- put 16 into VolumeEndItem
- --
- -- put 4 into LeftVolumeBuffer
- -- put 2 into RightVolumeBuffer
- --
- -- put ["intro", "context", "resell", "invest", "partner", "program", "core", "products", "rev", "awards", "showcase", "geekware", "TimeLine", "quit", "ΓÇóVolume", "ΓÇóVolume"] into movieList
- --
- -- else
- --
- -- put 1054 into Menucast
- --
- -- put 1060 into Nullcast
- -- put 1111 into VolumeStartCast
- -- put 20 into PixelsPerItem
- --
- -- put 16 into VolumeStartItem
- -- put 17 into VolumeEndItem
- --
- -- put 4 into LeftVolumeBuffer
- -- put 2 into RightVolumeBuffer
- --
- -- put ["intro", "context", "resell", "invest", "partner", "program", "core", "products", "rev", "awards", "showcase", "geekware", "TimeLine", "Bob", "quit", "ΓÇóVolume", "ΓÇóVolume"] into movieList
- -- end if
- --
- -- SetCast(MenuItemSprite, Nullcast)
- --
- -- PauseMovie
- -- repeat while the stillDown
- -- Idle
- -- if Rollover(MenuSprite) or RollOver(MySprite) or RollOver(VolumeSprite) then -- still on menu
- -- if the castnum of sprite MenuSprite <> Menucast then
- -- SetCast(MenuSprite, Menucast)
- -- PuppetSound(MenuOpensound)
- -- end if
- -- put the top of sprite MenuSprite into TopOfMenu
- -- put the MouseV into MV
- --
- -- put TopOfMenu into RealDiff
- --
- -- put MV - RealDiff into DistDown
- --
- -- put DistDown/PixelsPerItem into itemDown
- -- put itemDown into MenuItem
- -- if itemDown < 1 then put 0 into MenuItem
- -- if itemDown > VolumeEndItem then put 0 into MenuItem
- --
- -- if itemDown = VolumeStartItem or itemDown = VolumeEndItem then
- -- put the soundLevel into MyLevel
- --
- -- SetCast(VolumeSprite, VolumeStartCast + MyLevel)
- -- UpdateStage
- -- if rollover(VolumeSprite) then
- -- put (the left of sprite VolumeSprite) + LeftVolumeBuffer into MyLeft
- -- put (the right of sprite VolumeSprite) - RightVolumeBuffer into MyRight
- -- put float(MyRight - MyLeft) into TDist
- --
- -- repeat while rollover(VolumeSprite) and the StillDown
- -- idle
- -- put the MouseH into MH
- -- put MH - MyLeft into DistFromLeft
- -- put DistFromLeft/TDist into Perc
- -- put 1 - Perc into Perc
- -- -- put Perc
- -- put Perc * 8 into TheV
- -- if theV < 0 then put 0 into TheV
- -- SetCast(VolumeSprite, VolumeStartCast + TheV)
- --
- -- put the castNum of sprite VolumeSprite into MyCast
- -- put MyCast - VolumeStartCast into CurrentLevel
- -- if the SoundLevel <> CurrentLevel then
- -- set the SoundLevel to CurrentLevel
- -- if not MovieIsPlaying() then PuppetSound(VolumeChangeSound)
- -- end if
- --
- -- UpdateStage
- -- SyncFrametoTicks
- -- end repeat
- --
- -- put the soundLevel into MyLevel
- --
- -- SetCast(VolumeSprite, VolumeStartCast + MyLevel)
- --
- -- --SetCast(VolumeSprite, Nullcast)
- -- end if
- -- else
- -- SetCast(VolumeSprite, Nullcast)
- -- end if
- --
- -- else
- -- -- SetCast(VolumeSprite, Nullcast)
- -- -- if the castNum of sprite MenuSprite <> Nullcast then
- -- -- SetCast(MenuSprite, Nullcast)
- -- -- PuppetSound MenuCloseSound
- -- -- end if
- -- put 0 into MenuItem
- -- end if
- --
- -- if the CastNum of sprite MenuItemSprite <> MenuItem + Nullcast then
- -- SetCast(MenuItemSprite, MenuItem + Nullcast)
- -- -- if the castNum of sprite MenuSprite <> Nullcast then PuppetSound(MenuItemChangeSound)
- -- end if
- --
- -- UpdateStage
- -- SyncFrametoTicks
- -- end repeat
- --
- -- if MenuItem <> 0 then
- --
- -- put 0 into BlinkTimes
- -- repeat with n = 1 to 3
- -- PuppetSound(MenuSelectSound)
- -- SetCast(MenuItemSprite, MenuItem + Nullcast)
- -- startTimer
- -- repeat while the timer < 3
- -- UpdateStage
- -- SyncFrametoTicks
- -- end repeat
- --
- -- SetCast(MenuItemSprite, Nullcast)
- -- startTimer
- -- repeat while the timer < 3
- -- UpdateStage
- -- SyncFrametoTicks
- -- end repeat
- -- SyncFrametoTicks
- -- end repeat
- --
- -- end if
- --
- --
- -- put MenuItem
- --
- -- if MenuItem > 0 then
- -- put getAt(movieList, MenuItem) into NewMovie
- --
- -- put char 1 of NewMovie into Doit
- -- if Doit <> "ΓÇó" then
- -- GoMovie(NewMovie)
- -- end if
- -- end if
- --
- -- SetCast(MenuItemSprite, Nullcast)
- -- SetCast(MenuSprite, Nullcast)
- -- PuppetSound(MenuCloseSound)
- -- SetCast(VolumeSprite, Nullcast)
- --
- -- UpdateStage
- -- PuppetSprite MenuSprite, False
- -- PuppetSprite MenuItemSprite, false
- -- PuppetSprite VolumeSprite, false
- --
- -- unPauseMovie
- --end