home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1996 February
/
VPR9602A.ISO
/
office95
/
bucket2.dir
/
00056_Script_56
< prev
next >
Wrap
Text File
|
1995-10-18
|
3KB
|
102 lines
on startmovie
global autoMode,pauseSprite,previousSprite,nextSprite,menuSprite,quitSprite
put 45 into menuSprite
put 47 into pauseSprite
put 46 into previousSprite
put 48 into nextSprite
put 44 into quitSprite -- not used in this demo
put true into autoMode
end
on initSprites
global pauseSprite,previousSprite,nextSprite,menuSprite,quitSprite
puppetSprite pauseSprite,true
puppetSprite previousSprite,true
puppetSprite nextSprite,true
puppetSprite quitSprite,true
puppetSprite menuSprite,true
end
on turnOffSprites
global pauseSprite,previousSprite,nextSprite,menuSprite,quitSprite
puppetSprite pauseSprite,false
puppetSprite previousSprite,false
puppetSprite nextSprite,false
puppetSprite quitSprite,false
puppetSprite menuSprite,false
end
on pauseMode
global autoMode,pauseSprite,nextSprite
if autoMode then
put false into autoMode
set the castNum of sprite pauseSprite to the castNum of sprite pauseSprite + 1
--put the ticks into startTime
--repeat while the mouseDown or the ticks < startTime + 20
--updatestage
--end repeat
--set the castNum of sprite pauseSprite to the number of cast "paused"
updateStage
pause
else
put true into autoMode
set the castNum of sprite pauseSprite to the castNum of sprite pauseSprite - 1
--put the ticks into startTime
--repeat while the mouseDown or the ticks < startTime + 20
--updatestage
--end repeat
--set the castNum of sprite pauseSprite to the number of cast "pause"
updateStage
continue
end if
end
on goNext
global nextSprite,pauseSprite,autoMode
set autoMode to true
set the castNum of sprite pauseSprite to the number of cast "pause"
depress nextSprite
go marker (1)
end
on goPrevious
global previousSprite,pauseSprite,autoMode
set autoMode to true
set the castNum of sprite pauseSprite to the number of cast "pause"
depress previousSprite
go marker(-1)
end
on goMenu
global menuSprite
depress menuSprite
turnOffSprites
sound stop 1
go frame "Menu" of movie "BucMenu.dir"
end
on goCredits
turnOffSprites
end
on creditsQuit
global quitSprite
depress quitSprite
turnOffSprites
go frame "exit"
end
on depress whichSprite
put the ticks into startTime
set the castNum of sprite whichSprite to the castNum of sprite whichSprite + 1
repeat while the mouseDown or the ticks < startTime + 20
updatestage
end repeat
set the castNum of sprite whichSprite to the castNum of sprite whichSprite - 1
updateStage
end