home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Today - The Disc! 9
/
cdrt09.iso
/
mac
/
UTAHDEMO
/
SHARED.DIR
/
00732_Script_732
< prev
next >
Wrap
Text File
|
1995-01-13
|
3KB
|
101 lines
-- set up quit
on setUpQuit
global buttonPressed
puppetSprite 22, TRUE
puppetSprite 21, TRUE
puppetSprite 20, TRUE
puppetSprite 19, TRUE
if (the type of sprite 20 = 1) then
if rollover (20) then
if (the stillDown) then
set the castNum of sprite (20) to a34
else
set the castNum of sprite (20) to a35
end if
else
set the castNum of sprite (20) to a34
end if
end if
if (the type of sprite 19 = 1) then
if rollover (19) then
if (buttonPressed = 7) and (the stillDown) then
set the castNum of sprite (19) to the number of cast "quit down"
else if (the stillDown) then
set the castNum of sprite (19) to the number of cast "quit up"
else
set the castNum of sprite (19) to the number of cast "quit sel"
end if
else
set the castNum of sprite (19) to the number of cast "quit up"
end if
end if
--credits button
if (the type of sprite 21 = 1) then
if rollover (21) then
if (buttonPressed = 30) and (the stillDown) then
set the castNum of sprite (21) to the number of cast "credits down"
else if (the stillDown) then
set the castNum of sprite (21) to the number of cast "credits up"
else
set the castNum of sprite (21) to the number of cast "credits sel"
end if
else
set the castNum of sprite (21) to the number of cast "credits up"
end if
end if
--help button
if (the type of sprite 22 = 1) then
if rollover (22) then
if (buttonPressed = 15) and (the stillDown) then
set the castNum of sprite (22) to the number of cast "help down"
else if (the stillDown) then
set the castNum of sprite (22) to the number of cast "help up"
else
set the castNum of sprite (22) to the number of cast "help sel"
end if
else
set the castNum of sprite (22) to the number of cast "help up"
end if
end if
-- confirm quitting
on confirmQuitting
global buttonPressed
puppetSprite 23, TRUE
puppetSprite 24, TRUE
if not(the stillDown) then set buttonPressed = FALSE
if (the type of sprite 23 = 1) then
if rollover (23) then
if (buttonPressed = 8) and (the stillDown) then
set the castNum of sprite (23) to the number of cast "yes down"
else if (the stillDown) then
set the castNum of sprite (23) to the number of cast "yes up"
else
set the castNum of sprite (23) to the number of cast "yes sel"
end if
else
set the castNum of sprite (23) to the number of cast "yes up"
end if
end if
if (the type of sprite 24 = 1) then
if rollover (24) then
if (buttonPressed = 9) and (the stillDown) then
set the castNum of sprite (24) to the number of cast "no down"
else if (the stillDown) then
set the castNum of sprite (24) to the number of cast "no up"
else
set the castNum of sprite (24) to the number of cast "no sel"
end if
else
set the castNum of sprite (24) to the number of cast "no up"
end if
end if