On Wed, 9 Mar 2005 17:30:36 +0100, Yann Chevalier <[EMAIL PROTECTED]> wrote:

> <mx:MediaDisplay id="display" width="100%" height="100%"
> contentPath="assets/clip.flv" autoSize="true" aspectRatio="true" />
> <mx:ControlBar horizontalAlign="center">

This worked for me:

<mx:Panel id="main" title="Test de Display" width="100%"
height="100%">
<mx:MediaDisplay id="display" height="{main.height -
ctrlbar.height - 50}"
contentPath="assets/clip.flv" aspectRatio="true"/>
<mx:ControlBar id="ctrlbar" horizontalAlign="center">
<mx:MediaController width="100%" height="100%"
associatedDisplay="display" controllerPolicy="on"/>
</mx:ControlBar>
</mx:Panel>

Note: (1) autoSize should *not* be true for this to work (see the
docs). (2) height="100%" doesn't seem to work, so we're calculating
the desired height ourselves. The width gets set automatically
because of aspectRatio="true"

Manish


Reply via email to