autoSize says "Whether the display sizes itself according to the
preferred size of the media."
That's the opposite of what I'm trying to do, I want to be able to
resize it dynamically to whatever I want it to be.
<mx:Panel id="main" title="Test" width="100%" height="100%"
verticalAlign="middle" horizontalAlign="center">
<mx:Button
click="display.width=display.width/2;display.height=display.height/2"
/>
<mx:MediaDisplay id="display" height="{main.height - 100}"
width="{main.width -100}" contentPath="clip.flv" aspectRatio="false"
autoSize="false" autoPlay="false"/>
</mx:Panel>
If I do this, the clip will size according to the specified width and
height no problem when the app first loads, but when I resize the
app, or when I click the button, the clip display doesn't resize.
The control itself actually does (if you click the button you can
actually see the panel layout change with the new size, but the
rendered clip size doesn't change).
Using width="90%" doesn't work at all.
--- In [email protected], Manish Jethani
<[EMAIL PROTECTED]> wrote:
> Set autoSize to true.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/