home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Magazine 28 Bonus
/
CDRomMagazine-SoftKey-ArtPassion-FrenchVersion-Win31Mac.bin
/
data
/
shared.dir
/
03014_Script_GENERAL
< prev
next >
Wrap
Text File
|
1996-06-21
|
3KB
|
93 lines
-- ---------------------------------------------------------------
-- Handler getLastWords returns words firstWord to the last of the
-- given item.
on getLastWords firstWord, whichItem
return word firstWord to numWords(whichItem) of whichItem
end
-- ---------------------------------------------------------------
-- Handler removeFromStage
on removeFromStage whichSprite
set the locV of sprite whichSprite = 1000
updateStage
end
-- ---------------------------------------------------------------
-- Handler changeCast
on changeCast whichSprite, castName
set the castNum of sprite whichSprite = the number of cast castName
updateStage
end
-- ---------------------------------------------------------------
-- Handler numWords returns the number of words in the given item.
on numWords theItem
return the number of words in theItem
end
-- ---------------------------------------------------------------
-- Handler goMovie goes to the given movie. If a frame name is
-- given, it goes to the given frame of the given movie.
on goMovie toMovie, toFrame
sound stop 1
sound stop 2
if voidP(toFrame) or (toFrame = "") then
go movie toMovie
else if (toMovie = the movieName) then
go toFrame
else
go frame toFrame of movie toMovie
end if
end
-- ---------------------------------------------------------------
-- Handler goFrameTransition goes to the frame with the given name
-- while performing the given transition.
on goFrameTransition whichFrame, whichTransition, time, chunkSize
resetSpriteCursors
doTransition whichTransition, time, chunkSize
go frame whichFrame
end
-- ---------------------------------------------------------------
-- Handler goFrame goes to the frame with the given name.
on goFrame whichFrame, whichTransition, time, chunkSize
resetSpriteCursors
doTransition whichTransition, time, chunkSize
go frame whichFrame
end
-- ---------------------------------------------------------------
-- Handler rectLeft returns the left value of the given rect.
on rectLeft aRect
return getAt(aRect,1)
end
-- ---------------------------------------------------------------
-- Handler rectTop returns the top value of the given rect.
on rectTop aRect
return getAt(aRect,2)
end
-- ---------------------------------------------------------------
-- Handler rectRight returns the right value of the given rect.
on rectRight aRect
return getAt(aRect,3)
end
-- ---------------------------------------------------------------
-- Handler rectBottom returns the bottom value of the given rect.
on rectBottom aRect
return getAt(aRect,4)
end