User Guide
834 Media components (Flash Professional only)
The streaming media components broadcast several related events. The following broadcast
events can be used to set other items in motion:
■ A change event is broadcast continuously by the MediaDisplay and MediaPlayback
components while media is playing. (See
Media.change.)
■ A progress event is continuously broadcast by the MediaDisplay and MediaPlayback
components while media is loading. (See
Media.progress.)
■ A click event is broadcast by the MediaController and MediaPlayback components
whenever the user clicks the Pause/Play button. In this case, the
detail property of the
event object provides information on which button was clicked. (See
Media.click.)
■ A volume event is broadcast by the MediaController and MediaPlayback components
when the user adjusts the volume controls. (See
Media.volume.)
■ A playheadChange event is broadcast by the MediaController and MediaPlayback
components when the user moves the playback slider or when the Go to Beginning or Go
to End buttons are clicked. (See
Media.playheadChange.)
The MediaDisplay component works with the MediaController component. Combined, the
components behave in a manner similar to the MediaPlayback component, but they give you
more flexibility in the look and feel of your media presentation.
Understanding the MediaDisplay component
When you place a MediaDisplay component on the Stage, it has no user interface. It is simply
a container to hold and play media. The following properties affect the appearance of video
media playing in a MediaDisplay component:
■ Media.aspectRatio
■ Media.autoSize
■ Height (in the Property inspector)
■ Width (in the Property inspector)
The
Media.aspectRatio property takes precedence over the other properties. When
Media.aspectRatio is set to true (the default), the component always readjusts the size of
the playing media to maintain the media’s aspect ratio.
NOTE
The user does not see anything unless some media is playing.