
Streaming Flash content with Lingo or JavaScript syntax
187
Controlling the Flash content bounding rectangle and registration points
You can use Lingo or JavaScript syntax to control the Flash content bounding rectangle and to
Flash content registration points. For more information, see the Scripting Reference topics in the
Director Help Panel.
•
To control which part of the Flash content appears within its sprite’s bounding rectangle, set
the
viewH
,
viewpoint
,
viewScale
, and
viewV
properties.
•
To control the default size for all new Flash sprites, set the
defaultRect
property. Use the
defaultRectMode
property to control how the default size is set.
•
To determine the original size of a Flash cast member, test the
flashRect
property.
•
To specify the Flash content registration point around which scaling and rotation occurs, set
the
originH
,
originMode
,
originPoint
, and
originV
properties.
•
To center a Flash cast member’s registration point after resizing the cast member, set the
centerRegPoint
property to
TRUE
.
Placing Flash content on the Stage
Lingo or JavaScript syntax can set whether Flash content appears at the front of the Stage and
whether specific areas of Flash content and the Stage overlap. For more information, see the
Scripting Reference topics in the Director Help Panel.
•
To determine whether Flash content plays in front of all other layers on the Stage and whether
ink effects work, set the
directToStage
property.
•
To determine which Stage coordinate coincides with a specified coordinate in Flash content,
use the
flashToStage()
method.
•
To determine which Flash content coordinate coincides with a specified coordinate on the
Director Stage, use the
stageToFlash
method.
•
To improve performance for a Director movie that uses static (not animated) Flash content, set
the
static
property.
•
To control whether the Flash content graphics are visible, set the
imageEnabled
property.
•
To control whether the Flash content plays sounds, set the
sound
property.
•
To control whether Director uses anti-aliasing to render Flash content, set the
quality
property.
Streaming Flash content with Lingo or JavaScript syntax
In addition to the Lingo or JavaScript syntax that lets you stream many of the Director media
types, Director lets you control and monitor streaming Flash content. For general information
about using script to stream media in Director, see
Chapter 24, “Using Shockwave Player,”
on page 469
. For more information about specific Lingo or JavaScript syntax methods and
properties, see the Scripting Reference topics in the Director Help Panel.
•
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 Flash content have streamed into memory, test the
bytesStreamed
property.
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...