
200
Chapter 9: Using Flash, Flash Components, and Other Interactive Media Types
To play a video stream through the video clip object:
•
Use the
attachVideo()
method with the reference to the video clip.
videoRef.attachVideo(
source
)
For detailed examples of how to use Flash Communication Server in Director, see the Director
Support Center (
www.macromedia.com/go/director_support
).
Using the Flash Settings panel
When you use a Flash cast member in your Director movie, you may want to display the Flash
Settings panel. The Flash Settings panel lets users choose privacy, storage, camera, and
microphone settings that affect playback of Flash content that communicate with a Flash
Communication Server. For more information about the options in the Settings panel, see the
Macromedia Flash Player Help section of the Macromedia website (
www.macromedia.com/go/
flashplayer_help_en
).
Opening the Settings panel
You must have a Flash sprite on the Stage to display the Settings panel. The sprite must be at least
as large as the Settings panel (214x137 pixels). The Flash sprite’s Direct-to-Stage property must
be set to
TRUE
. You can set this property in the Flash tab of the Property inspector. If the Flash
sprite is not set to display Direct-to-Stage or is too small, the Settings panel does not appear, but
no error occurs.
You display the Settings panel in a Director movie by using the
settingsPanel()
method. Once
the panel is displayed, the user can choose the desired settings and then close the panel.
To display the Flash Settings panel, use the following script:
sprite(
flashSpriteReference
).settingsPanel(
integerWhichTabToDisplay
)
For more information about the parameters for this method, see the Scripting Reference topics in
the Director Help Panel.
You might decide to invoke the Settings panel by allowing the user to click a button on the Stage
that opens the panel. In this case, you would use the
settingsPanel()
method in a
mouseUp
or
mouseDown
handler attached to the button sprite. You could also use the
settingsPanel()
method at any other time to open the panel, depending on how you want to make the
panel available.
Emulating the Flash Player context menu in Shockwave
You might decide that you want to allow users to access the Settings panel by right-clicking
(Windows) or Control-clicking (Macintosh) on your Flash sprite when your movie is playing in a
browser. To do this, you must first disable the context menu that is built into the Macromedia
Shockwave Player. After the Shockwave context menu is disabled, you can trigger the Flash
Settings panel by right-clicking or Control-clicking.
To disable the Shockwave context menu:
1
Select File > Publish Settings.
2
Click the Shockwave Save Tab.
3
Deselect the Display Context Menu in Shockwave option. This sets a parameter named
swContextMenu
in the Shockwave
<Object>
and
<Embed>
tags to
FALSE
.
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...