
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.
Summary of Contents for DIRECTOR MX 2004-USING DIRECTOR
Page 1: ...DIRECTOR MX 2004 Using Director...
Page 16: ...16 Chapter 1 Introduction...
Page 82: ...82 Chapter 3 Sprites...
Page 98: ...98 Chapter 4 Animation...
Page 134: ...134 Chapter 5 Bitmaps...
Page 242: ...242 Chapter 10 Sound and Synchronization...
Page 274: ...274 Chapter 11 Using Digital Video...
Page 290: ...290 Chapter 12 Behaviors...
Page 302: ...302 Chapter 13 Navigation and User Interaction...
Page 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Page 392: ...392 Chapter 16 Working with Models and Model Resources...
Page 418: ...418 Chapter 18 Movies in a Window...
Page 446: ...446 Chapter 22 Managing and Testing Director Projects...