MACROMEDIA DIRECTOR MX 2004-DIRECTOR SCRIPTING Reference page 554

Director scripting reference
Table of Contents

Advertisement

// JavaScript syntax
_global.grandTotal;
function mouseUp() {
if (_global.grandTotal == 500) {
_movie.stopEvent();
}
}
Neither subsequent scripts nor other behaviors on the sprite receive the event if it is stopped in
this manner.
See also
Movie
stream()
Usage
-- Lingo syntax
memberObjRef.stream(numberOfBytes)
// JavaScript syntax
memberObjRef.stream(numberOfBytes);
Description
Command; manually streams a portion of a specified Flash movie cast member into memory.
The
command returns the number of bytes actually streamed. Depending on a variety of
stream
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
property.
streamMode
Parameters
numberOfBytes
the
numberOfBytes
member's
bufferSize
Example
The following frame script checks to see if a linked Flash movie cast member has streamed into
memory by checking its
into memory, the script tries to stream 32,000 bytes of the movie into memory.
The script also saves the actual number of bytes streamed in a variable called
the number of bytes actually streamed does not match the number of bytes requested, the script
updates a text cast member to report the number of bytes actually received. The script keeps the
playhead looping in the current frame until the cast member has finished loading into memory.
554
Chapter 12: Methods
command for a cast member regardless of the cast member's
stream
Optional. An integer that specifies the number of bytes to stream. If you omit
parameter, Director tries to stream the number of bytes set by the cast
property.
percentStreamed
property. If the cast member is not completely loaded
. If
bytesReceived

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Director mx 2004

Table of Contents