
Controlling Flash content appearance with Lingo or JavaScript syntax
185
To add Flash to the list of external editors:
1
Select Edit > Preferences > Editors.
Note:
If you are using a Macintosh OS X operating system, select the Director menu, instead of
the Edit menu, to access Preferences.
2
Select Flash, and click Edit.
3
Select Use External Editor, and click Browse.
4
Browse to the location of your Flash application.
5
Select the Flash application file, and click Open.
6
Click OK, and then click OK again.
Flash starts when you double click a Flash cast member.
Controlling Flash content with Lingo or JavaScript syntax
Lingo or JavaScript syntax gives you precise control over the way Director streams and displays
Flash content. You can use these scripts to check and control cast member streaming, zoom and
colorize the Flash asset, and pan the Flash image.
When a movie is playing, Lingo or JavaScript syntax can change the Flash cast member’s
properties. Some cast member properties, such as the
flashRect
and
frameRate
cast member
properties, are valid only after the Flash content header has streamed into memory.
Director provides the following Lingo or JavaScript syntax that lets you manage how Director
uses Flash content. For more information, see the Scripting Reference topics in the Director
Help Panel.
•
To control whether changes to a Flash cast member immediately appear in sprites that use the
cast member, set the cast member’s
broadcastProps
property.
•
To control whether Flash content is stored in an external file, set the
linked
property.
•
To control which frame of Flash content that Director uses for the Flash contents thumbnail
image, set the
posterFrame
property.
•
To display a list of Flash content’s current property settings in the Message window, use the
showProps
method.
Controlling Flash content appearance with Lingo or
JavaScript syntax
Lingo or JavaScript syntax can control how a Flash content appears on the Stage and which part
of the Flash content appears in its sprite’s bounding rectangle. Lingo or JavaScript syntax can also
skew, rotate, scale, and flip the Flash content.
Director supports only the Copy, Transparent, Background Transparent, and Blend inks for Flash
sprites, and only when the sprite is not played Direct-to-Stage.
Содержание DIRECTOR MX 2004-USING DIRECTOR
Страница 1: ...DIRECTOR MX 2004 Using Director...
Страница 16: ...16 Chapter 1 Introduction...
Страница 82: ...82 Chapter 3 Sprites...
Страница 98: ...98 Chapter 4 Animation...
Страница 134: ...134 Chapter 5 Bitmaps...
Страница 242: ...242 Chapter 10 Sound and Synchronization...
Страница 274: ...274 Chapter 11 Using Digital Video...
Страница 290: ...290 Chapter 12 Behaviors...
Страница 302: ...302 Chapter 13 Navigation and User Interaction...
Страница 334: ...334 Chapter 15 The 3D Cast Member 3D Text and 3D Behaviors...
Страница 392: ...392 Chapter 16 Working with Models and Model Resources...
Страница 418: ...418 Chapter 18 Movies in a Window...
Страница 446: ...446 Chapter 22 Managing and Testing Director Projects...