User Guide

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 sprites 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.