User Guide
Media components (Flash Professional only) 511
Property summary for the Media class
The following table lists properties of the Media class.
Property Components Description
Media.activePlayControl MediaController Determines the component state when loaded
at runtime.
Media.aspectRatio MediaDisplay,
MediaPlayback
Determines if the component instance maintains
its video aspect ratio.
Media.autoPlay MediaDisplay,
MediaPlayback
Determines if the component instance
immediately starts to buffer and play.
Media.autoSize MediaDisplay,
MediaPlayback
Determines the size of the media-viewing portion
of the MediaDisplay or MediaPlayback
component.
Media.backgroundStyle MediaController Determines if the component instance draws its
chrome background.
Media.bytesLoaded MediaDisplay,
MediaPlayback
Read-only; the number of bytes loaded that are
available for playing.
Media.bytesTotal MediaDisplay,
MediaPlayback
The number of bytes to be loaded into the
component instance.
Media.contentPath MediaDisplay,
MediaPlayback
A string that holds the relative path and filename
of the media to be streamed and played.
Media.controllerPolicy MediaController,
MediaPlayback
Determines whether the controller is hidden when
instantiated and only appears when the user
moves the mouse over the controller’s collapsed
state.
Media.controlPlacement MediaPlayback Determines where the component’s controls are
positioned.
Media.cuePoints MediaDisplay,
MediaPlayback
An array of cue point objects that have been
assigned to a given component instance.
Media.horizontal MediaController Determines the orientation of the
component instance.
Media.mediaType MediaDisplay,
MediaPlayback
Determines the type of media to be played.
Media.playheadTime MediaDisplay,
MediaPlayback
Holds the current position of the playhead (in
seconds) for the media Timeline that is playing.
Media.playing MediaDisplay,
MediaPlayback,
MediaController
For MediaDisplay and MediaPlayback, this
property is read-only and returns a Boolean value
to indicate whether a given component instance is
playing media. For MediaController, this property
is read/write and controls the image (playing or
paused) displayed on the Play/Pause button of
the controller.
Media.preferredHeight MediaDisplay,
MediaPlayback
The default value of the height of a FLV file.