User Guide

511
The following statement makes Grayscale the movies palette. The transition to the Grayscale
palette occurs over a time setting of 15 and between frames labeled Gray and Color.
puppetPalette "Grayscale", 15, label("Gray") - label("Color")
puppetSound
Syntax
puppetSound whichChannel, whichCastMember
puppetSound whichCastMember
puppetSound member whichCastMember
puppetSound 0
puppetSound whichChannel, 0
Description
Command; makes the sound channel a puppet, plays the sound cast member specified by
whichCastMember, and lets Lingo override any sounds assigned in the Scores sound channels.
Specify a sound channel by replacing
whichChannel with a channel number.
The sound starts playing after the playhead moves or the
updateStage command is executed.
Using 0 as the cast number argument stops the sound from playing. It also returns control of the
sound channel to the Score.
Puppet sounds can be useful for playing a sound while a different movie is being loaded
into memory.
The Director player for Java supports the following versions of the puppetSound command:
puppetSound whichChannel, whichCastMember, or puppetSound whichCastMember—
Plays a sound.
puppetSound 0 or puppetSound whichChannel, 0—Stops a sound.
Examples
This statement plays the sound Wind under control of Lingo:
puppetSound "Wind"
This statement turns off the sound playing in channel 2:
puppetSound 2, 0
See also
sound fadeIn, sound fadeOut, sound playFile, sound stop
puppetSprite
Syntax
puppetSprite whichChannel, state
Description
Command; determines whether the sprite channel specified by whichSprite is a puppet and
under Lingo control (
TRUE) or not a puppet and under the control of the Score (FALSE).
While the playhead is in the same sprite, turning off the sprite channel’s puppetting using the
command
puppetSprite whichSprite, FALSE resets the sprites properties to those in the Score.