481
The following statement plays cast member creditsMusic in sound channel 2. Playback begins 4
seconds into the sound and ends 15 seconds into the sound. The section from 10.5 seconds to 14
seconds loops 6 times.
sound(2).play([#member: member("creditsMusic"), #startTime: 4000, \
#endTime: 15000, #loopCount: 6, #loopStartTime: 10500, #loopEndTime: 14000])
See also
setPlaylist()
,
isBusy()
,
pause() (sound playback)
,
playNext()
,
preLoadTime
,
queue()
,
rewind()
,
stop() (sound)
playBackMode
Syntax
sprite(
whichFlashSprite
).playBackMode
the playBackMode of sprite
whichFlashSprite
member(
whichGIFAnimMember
).playBackMode
the playBackMode of member
whichGIFAnimMember
Description
Cast member and sprite property; controls the tempo of a Flash movie or animated GIF cast
member with the following values:
•
#normal
(default)—Plays the Flash movie or GIF file as close to the original tempo as possible.
•
#lockStep
—Plays the Flash movie or GIF file frame for frame with the Director movie.
•
#fixed
—Plays the Flash movie or GIF file at the rate specified by the
fixedRate
property.
This property can be tested and set.
Example
This sprite script sets the frame rate of a Flash movie sprite to match the frame rate of the
Director movie:
property spriteNum
on beginSprite me
sprite(spriteNum).playBackMode = #lockStep
end
See also
fixedRate
play done
Syntax
play done
Description
Command; ends the sequence started with the most recent
play
command. The
play done
command returns the playhead to where the calling sequence initiated the
play
command. If
play
is issued from a frame script, the playhead returns to the next frame; if
play
is issued from a
sprite script, the playhead returns to the same frame.
Each
play
command needs a matching
play done
command to avoid using up memory if the
original calling script isn’t returned to. To avoid this memory consumption, you can use a global
variable to record where the movie should return to.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...