
627
Example
This statement reports in the Message window whether the word Macromedia starts with the
string “Macro”:
put "Macromedia" starts "Macro"
The result is 1, which is the numerical equivalent of
TRUE
.
See also
contains
startTime
Syntax
sprite(
whichSprite
).startTime
the startTime of sprite
whichSprite
sound(
channelNum
).startTime
Description
Sprite and sound property; for digital video sprites, determines when the specified digital video
sprite begins. The value of
startTime
is measured in ticks.
For digital video sprites, this property can be tested and set. Set the
startTime
before the digital
video member begins playback.
For sound channels, this property indicates the start time of the currently playing or paused
sound as set when the sound was queued. It cannot be set after the sound has been queued. If no
value was supplied when the sound was queued, this property returns zero.
Example
This statement starts the digital video sprite in channel 5 at 100 ticks into the digital video:
sprite(5).startTime = 100
See also
queue()
,
setPlaylist()
,
play() (sound)
startTimer
Syntax
startTimer
Description
Command; sets the
timer
property to 0 and resets all the accumulating timers for the
lastClick()
,
lastEvent()
,
lastKey
, and
lastRoll
functions to 0.
If multiple timers are required, you must create and manage your own. These can be properties in
a behavior, a global list, or even a parent script. Typically, you use the
ticks
property to track time
in this manner.
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...