User Guide

188 Chapter 9: Using Flash, Flash Components, and Other Interactive Media Types
To determine how much of Flash content is currently streamed, test the percentStreamed
property or check the
streamSize method.
To set when Director attempts to stream part of Flash content, set the streamMode property.
To clear an error setting for streaming Flash content, use the clearError method.
To determine whether an error occurred while streaming Flash content, use the getError()
method.
To check the current state of a streaming file, test the state property.
To attempt to forcibly stream a specified number of bytes of Flash content, use the stream
method.
Playing back Flash content with Lingo or JavaScript syntax
Lingo or JavaScript syntax lets you control how Flash content plays back and whether the Flash
content retains its interactivity.
Controlling Flash content playback with Lingo or JavaScript syntax
You can use Lingo or JavaScript syntax to control the Flash content tempo, to specify which frame
plays, and to start, stop, pause, and rewind the Flash content. For more information, see the
Scripting Reference topics in the Director Help Panel.
To control the tempo of Flash content, set the fixedRate and playBackMode properties.
To determine the original frame rate of Flash content, test the frameRate property.
To determine the number of frames in Flash content, test the frameCount property.
To determine the frame number associated with a label in Flash content, use the findLabel()
method.
To play Flash content starting from a specified frame, set the frame property or use the
goToFrame() method.
To set whether Flash content starts playing immediately when the Flash sprite appears on the
Stage, set the
pausedAtStart property.
To check whether Flash content is playing or paused, test the playing property.
To rewind Flash content to frame 1, use the rewind sprite method.
To stop Flash content at its current frame, use the stop method.
To stop Flash content at its current frame but let any audio continue to play, use the
hold method.
To specify a separate time line within a Flash cast member as the target of subsequent script
sprite methods, use the
tellTarget() and endTellTarget() methods.
To call a series of actions that reside in a frame of a Flash application sprite, use the
callFrame() method.