home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
shared.dir
/
03017_Script_TRANSITION
< prev
next >
Wrap
Text File
|
1996-06-21
|
1KB
|
43 lines
-- -----------------------------------------------------------
-- Handler getTransitionNumber returns the number of the given
-- doTransition.
on getTransitionNumber whichTransition
put field "transitions" into allTransitions
repeat with i = 1 to the number of lines in allTransitions
if (line i of allTransitions = whichTransition) then
return i
end if
end repeat
end
-- -----------------------------------------------------------
-- Handler doTransition performs the given doTransition in the
-- given time.
on doTransition whichTransition, time, chunkSize
put getTransitionNumber(whichTransition) into theTransition
processFrame
if voidP(chunkSize) then
puppetTransition theTransition, time
else
puppetTransition theTransition, time, chunkSize
end if
end
-- -----------------------------------------------------------
-- Handler doTransitionNoProcess performs the given doTransition in the
-- given time.
on doTransitionNoProcess whichTransition, time, chunkSize
put getTransitionNumber(whichTransition) into theTransition
if voidP(chunkSize) then
puppetTransition theTransition, time
else
puppetTransition theTransition, time, chunkSize
end if
end