
Using RealMedia content in Director
269
RealMedia Slider Knob
lets a graphic sprite function as a slider to control and monitor the
playback location (current time) of the RealMedia sprite with the RealMedia Target behavior
attached. When the user drags a sprite that has this behavior attached, a
seek
action is performed
on the stream.
RealMedia Buffering Indicator
lets a text area or field provide a graphical display of the stream-
buffering progress of the RealMedia sprite with the RealMedia Target behavior attached. As
stream buffering progresses, the width of the sprite increases from 0 to 100%.
RealMedia Stream Information
lets a text area or field display text information for the
RealMedia sprite with the RealMedia Target behavior attached. The text information can include
one of the following: the percent buffered, media status, current time, or file location or URL of
the RealMedia file. You select the information to display using the pop-up menu in the
Parameters dialog box for this behavior.
Using RealMedia behaviors
You attach RealMedia behaviors in the same way as you do other Director behaviors: drop the
behavior onto the sprite and use the dialog box to assign a group and other parameters.
The RealMedia Target behavior is the central RealMedia behavior and must be dropped onto the
RealMedia sprite before you can use any other behavior.
The RealMedia Slider Knob and RealMedia Slider Bar behaviors must be used together; if they
can’t locate one another, a one-time error message appears.
To attach RealMedia behaviors:
1
Create a RealMedia sprite on the Stage.
2
Open the Library palette (Window > Library Palette), and select Media > RealMedia from the
pop-up menu to display the RealMedia behaviors.
3
Drag the RealMedia Target behavior to the RealMedia sprite on the Stage.
4
Enter the number of milliseconds for a long and short seek operation, and assign the behavior
to a group or accept the defaults.
The number of milliseconds you specify for a long or short seek is the number that is used by
the various forward and back options of the RealMedia Control Button behavior. Be aware
that short seeks are ineffective because the amount of time it takes the stream to rebuffer is
generally longer than the number of milliseconds that are skipped in the stream.
5
Create graphic sprites to act as slider controls and Play, Stop, and Pause buttons for the
RealMedia sprite and place them on the Stage. You can also create a graphic sprite to display
the buffering progress of the RealMedia stream.
These sprites should be basic graphic sprites, not functional buttons; the RealMedia behaviors
add the button functionality.
6
Drag the RealMedia Control Button, RealMedia Slider Bar, RealMedia Slider, and RealMedia
Buffering Indicator behaviors to the sprites that you created on the Stage, and select the
appropriate action and group using the pop-up menu in the Parameters dialog box.
The group to which you assign the behavior must be the same group you created for the
RealMedia Target behavior.
Содержание 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...