For FLV files, when
regardless of the size of the component. This means that if the size of the MediaDisplay instance
size is different from the size of the media, the media will either spill out of the instance
boundaries or not fill the instance size. When
instance size as much as possible, while honoring the aspect ratio. If both
Media.aspectRatio
Note: Since there is no image to show with MP3 files, setting
For MP3 files, the minimum usable size is 60 pixels high by 256 pixels wide in the default orientation.
The MediaDisplay component also supports the
integer values from 0 (mute) to 100 (maximum volume). The default setting is 75.
Understanding the MediaController component
The interface for the MediaController component depends on its
Media.backgroundStyle
media control set is always visible, collapsed, or only visible when the mouse hovers over the
control portion of the component. When collapsed, the controller draws a modified progress bar,
which is a combination of the loadbar and the playbar. It shows the progress of the bytes being
loaded at the bottom of the bar, and the progress of the playhead just above it. When expanded,
the controller draws an enhanced version of the playbar/loadbar, which contains the following
items:
•
Text labels on the left that indicate the playback state (streaming or paused), and on the right
that indicate playhead location, in seconds
•
A playhead location indicator
•
A slider, which users can drag to navigate through the media
The MediaController component also provides the following items:
•
A Play/Pause button
•
Go to Beginning and Go to End buttons, which navigate to the beginning and end of the
media, respectively
•
A volume control that consists of a slider, a mute button, and a maximum volume button
Both the collapsed and expanded states of the MediaController component use the
Media.backgroundStyle
chrome background (the default) or allows the media background to display from behind
the controls.
The MediaController component has an orientation setting,
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.
500
Chapter 6: Components Dictionary
is set to
Media.autoSize
are set to
, the exact size of the component is used.
false
properties. The
property. This property determines whether the controller draws a
, the media is displayed at its preferred size,
true
is set to
Media.autoSize
Media.autoSize
property. This property takes on
Media.volume
Media.controllerPolicy
Media.horizontal
, Flash uses the
false
Media.autoSize
would have no effect.
Media.controllerPolicy
property determines if the
, which you can
and
and
Need help?
Do you have a question about the FLASH MX 2004-USING COMPONENTS and is the answer not in the manual?
Questions and answers