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:

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.

For FLV files, when Media.autoSize is set to true, the media is displayed at its preferred size, regardless of the size of the component. This means that if the size of the MediaDisplay instance is different from the size of the media, the media either spills out of the instance boundaries or does not fill the instance size. When Media.autoSize is set to false, Flash uses the instance size as much as possible, while honoring the aspect ratio. If both Media.autoSize and Media.aspectRatio are set to false, the exact size of the component is used.

NOTE

Since there is no image to show with MP3 files, setting Media.autoSize would have no effect. 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 Media.volume property. This property takes on integer values from 0 (mute) to 100 (maximum volume). The default setting is 75.