home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Review 28
/
Creative-Review-CD-ROM-28.iso
/
pc
/
kungfu
/
advert.dir
/
00004_Script_4
< prev
next >
Wrap
Text File
|
1997-08-08
|
2KB
|
86 lines
-- update
global gChanUpdate
global gCurrentList
global gAnimList
global gCurrentUpdate
global gNavDelay
global gNavtime
global gRoll
on hupdate
if the movietime of sprite 30 > the VidOut of gCurrentList then
set the movietime of sprite 30 to the Vidin of gCurrentList
return
end if
if the timer > gNavTime then
if the mouseh < 200 then
if gRoll = 0 then
repeat with a = 1 to count(gAnimList)
set currentchan = getat(gAnimList,a)
set thechan = the chan of currentchan
set theSymChan = the symbolchan of currentchan
if rollover( thechan) then
set gRoll = a
return
end if
if rollover( theSymChan) then
set gRoll = a
return
end if
updatestage
end repeat
else
set currentchan = getat(gAnimList,gRoll)
set thechan = the chan of currentchan
set theSymbolChan = the SymbolChan of currentchan
set rollcheck = 0
if rollover( thechan) then
set rollcheck = 1
end if
if rollover( theSymbolChan) then
set rollcheck = 1
end if
if rollcheck = 0 then
set gRoll = 0
return
end if
set theOut = the spOut of currentchan
set the castNum of sprite thechan to the castNum of sprite thechan + 1
if the castNum of sprite thechan > theOut then
set theIn = the spin of currentchan
set the castNum of sprite thechan to theIn
end if
end if
else
set gRoll = 0
end if
set gNavTime = the timer + 5
end if
end