User Guide

836 Media components (Flash Professional only)
The MediaController component has an orientation setting, Media.horizontal, which you
can use to draw the component with a horizontal orientation (the default) or a vertical one.
With a horizontal orientation, the playbar tracks playing media from left to right. With a
vertical orientation, the playbar tracks media from bottom to top.
You can associate the MediaDisplay and MediaController components with each other by
using the
Media.associateDisplay() and Media.associateController() methods.
These methods allow the MediaController instance to update its controls based on events
broadcast from the MediaDisplay instance, and allow the MediaDisplay component to react
to user settings in the MediaController.
Understanding the MediaPlayback component
The MediaPlayback contains the MediaController and MediaDisplay subcomponents. The
MediaController and MediaDisplay portions always scale to fit the size of the overall
MediaPlayback instance.
The MediaPlayback component uses
Media.controlPlacement to determine the layout of
the controls. By setting this property to
top, bottom, left, or right, you can indicate where
the controls are drawn in relation to the display. For example, a value of
right gives a control
a vertical orientation and positions it on the right of the display.
Using media components (Flash
Professional only)
With the sharp increase in the use of media to provide information to web users, many
developers want their users to be able to stream media and then control it. You might use
media components in the following kinds of situations:
Showing media that introduces a company
Streaming movies or movie previews
Streaming songs or song snippets
Providing learning material in the form of media
Using the MediaPlayback component
Suppose you must develop a website that allows users to preview DVDs and CDs that you sell
in a rich media environment. The following example shows the steps involves. (It assumes
your website is ready for inserting streaming components.)