User Guide
Chapter 11300
Streaming Flash movies with Lingo
In addition to the Lingo that lets you stream many of the Director media types, Director offers
Lingo that specifically lets you control and monitor streaming Flash movies. For general
information about using Lingo to stream media in Director, see Chapter 27, “Using Shockwave
Player,” on page 591. For more information on specific Lingo functions and commands, see the
Lingo Dictionary.
• To specify whether a linked movie streams or not, set the preLoad property.
• To specify how much of a Flash cast member streams into memory at one time, set the
bufferSize cast member property.
• To check how many bytes of a Flash movie have streamed into memory, test the
bytesStreamed property.
• To determine how much of a Flash movie is currently streamed, test the percentStreamed
property or check the
streamSize function.
• To set when Director attempts to stream part of a Flash movie, set the streamMode property.
• To clear an error setting for a streaming Flash movie, use the clearError command.
• To determine whether an error occurred while streaming a Flash movie, use the getError()
function.
• To check the current state of a streaming file, test the state property.
• To attempt to forcibly stream a specified number of bytes of a Flash movie, use the stream
command.
Playing back Flash movies with Lingo
Lingo lets you control how a Flash movie plays back and whether the Flash movie retains its
interactivity.
Controlling Flash movie playback with Lingo
You can use Lingo to control a Flash movie’s tempo, to specify which frame plays, and to start,
stop, pause, and rewind the Flash movie. For more information, see the Lingo Dictionary.
• To control the tempo of a Flash movie, set the fixedRate and playBackMode properties.
• To determine the original frame rate of a Flash movie, test the frameRate property.
• To determine the number of frames in a Flash movie, test the frameCount property.
• To determine the frame number associated with a label in a Flash movie, use the findLabel()
function.
• To play a Flash movie starting from a specified frame, set the frame property or use the
goToFrame command.
• To set whether a Flash movie starts playing immediately when the Flash sprite appears on the
Stage, set the
pausedAtStart property.
• To check whether a Flash movie is playing or paused, test the playing property.
• To rewind a Flash movie to frame 1, use the rewind sprite command.
• To stop a Flash movie at its current frame, use the stop command. .