开发者

problem with flex module full screen

开发者 https://www.devze.com 2023-01-13 02:48 出处:网络
hi i want to load flex module with width=\"100%\" height=\"100%\" but it doesn\'t works <mx:Application xmlns:mx=\"http://www.adobe.com/2006/mxml\" layout=\"开发者_Go百科absolute\" xmlns:ns1=\"*\"

hi i want to load flex module with width="100%" height="100%" but it doesn't works

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="开发者_Go百科absolute" xmlns:ns1="*" width="100%" height="100%">
    <mx:Panel width="100%" height="100%">

<mx:ModuleLoader url="TestModule.swf" >

</mx:ModuleLoader>

</mx:Panel>
</mx:Application>
<?xml version="1.0" encoding="utf-8"?>
<mx:Module
   xmlns:mx="http://www.adobe.com/2006/mxml"
   layout="absolute"
   percentWidth="100" percentHeight="100">
    <mx:ColumnChart id="columnchart1">
    <mx:series>
        <mx:ColumnSeries displayName="Series 1" yField="" dataProvider="{ [1, 2, 5, 8, 3] }" />
    </mx:series>
</mx:ColumnChart>`</mx:Module>`


Try this:

<mx:ModuleLoader url="TestModule.swf" width="100%" height="100%">


I would surround the Mode with something like a VBOX or a Group which also has 100%, 100% then it works fine for me.

0

精彩评论

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

关注公众号