Lingo Dictionary > S > scriptList |
![]() ![]() ![]() |
scriptList
Syntax
sprite(
whichSprite
).scriptList
the scriptList of sprite
whichSprite
Description
Sprite property; returns the list of behaviors attached to the given sprite and their properties. This property may only be set by using setScriptList()
. It may not be set during a score recording session.
Example
This statement displays the list of scripts attached to sprite 1 in the Message window:
put sprite(1).scriptList -- [[(member 2 of castLib 1), "[#myRotateAngle: 10.0000, #myClockwise: 1, #myInitialAngle: 0.0000]"], [(member 3 of castLib 1), "[#myAnglePerFrame: 10.0000, #myTurnFrames: 10, #myHShiftPerFrame: 10, #myShiftFrames: 10, #myTotalFrames: 60, #mySurfaceHeight: 0]"]]
See also
![]() ![]() ![]() |