开发者

flex 4: resize SWFLoader element to fit inside a VGroup element

I'm trying to resize a flash game inside a VGroup, no matter what configuration i try to set, some of my flash games are clipped out. i see only 80% of the actual flash screen.

this is my code:

<s:VGroup id="gameVGroup" clipAndEnableScrolli开发者_开发百科ng="true" height="480" maxHeight="480" width="540" maxWidth="540">
        <mx:SWFLoader id="swfGameLoader" loadForCompatibility="true" scaleContent="true" maintainAspectRatio="true" width="100%" height="100%" maxWidth="540" maxHeight="480" />
    </s:VGroup>     

any ideas?

update

i still want to maintain aspect ratio. so if the game is wider or taller then my application window, i want it to be resized properly.


maintainAspectRatio="false"
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜