User Guide
614
Examples
This statement plays the file named Thunder in channel 1:
sound playFile 1, "Thunder.wav"
This statement plays the file named Thunder in channel 3:
sound playFile 3, the moviePath & "Thunder.wav"
See also
sound stop
sound stop
Syntax
sound(whichChannel).stop()
sound stop whichChannel
Description
Command; stops the sound playing in the specified channel.
The sound stop command was used in earlier versions of Director. For best results, use the
puppetSound command instead.
Examples
These statements stop any sound playing in sound channel 1:
sound(1).stop()
This statement checks whether a sound is playing in sound channel 1 and, if it is, stops the sound:
if soundBusy(1) then sound(1).stop()
See also
puppetSound, soundBusy()
source
Syntax
sprite(whichSprite).camera.backdrop[backdropIndex].source
member(whichCastmember).camera(whichCamera).backdrop
[backdropIndex].source
sprite(whichSprite).camera.overlay[overlayIndex].source
member(whichCastmember).camera(whichCamera).overlay
[overlayIndex].source
Description
3D backdrop and overlay property; allows you to get or set the texture to use as the source image
for the overlay or backdrop.
Example
This statement sets the source of backdrop 1 to the texture Cedar:
sprite(3).camera.backdrop[1].source =
sprite(3).member.texture("Cedar")
See also
bevelDepth, overlay