User Guide

637
stopTime
Syntax
sprite(whichSprite).stopTime
the stopTime of sprite whichSprite
Description
Sprite property; determines when the specified digital video sprite stops. The value of stopTime is
measured in ticks.
This property can be tested and set.
Example
This statement stops the digital video sprite in channel 5 at 100 ticks into the digital video:
sprite(5).stopTime = 100
stream
Syntax
member(whichFlashSprite).stream(numberOfBytes )
stream(member whichFlashSprite, numberOfBytes)
Description
Command; manually streams a portion of a specified Flash movie cast member into memory. You
can optionally specify the number of bytes to stream as an integer value. If you omit the
numberOfBytes parameter, Director tries to stream the number of bytes set by the cast member’s
bufferSize property.
The
stream command returns the number of bytes actually streamed. Depending on a variety of
conditions (such as network speed or the availability of the requested data), the number of bytes
actually streamed may be less than the number of bytes requested.
You can always use the
stream command for a cast member regardless of the cast member’s
streamMode property.
Example
The following frame script checks to see if a linked Flash movie cast member has streamed into
memory by checking its percentStreamed property. If the cast member is not completely loaded
into memory, the script tries to stream 32,000 bytes of the movie into memory.