2011-08-22 48 views
0
Hello I am having issue with showing everything from my flex application. It only shows around of the whole application. 

    My application is as such: 

    <?xml version="1.0" encoding="utf-8"?> 
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx"   
        width="100%" height="100%" 
        xmlns:local="*"> 

     <mx:ViewStack id="mainstack" width="100%" height="100%" > 
      <mx:HBox id="Mod1" width="100%" height="100%" label="Mod1" horizontalAlign="center" verticalAlign="middle"> 
       <local:modloader url="Mod1.swf" id="mod1" /> 
      </mx:HBox> 
      <mx:HBox id="Mod2" width="100%" height="100%" label="Mod2" horizontalAlign="center" verticalAlign="middle"> 
       <local:modloader url="Mod2.swf" id="mod3" /> 
      </mx:HBox> 
      <mx:HBox id="Mod3" width="100%" height="100%" label="Mod3" horizontalAlign="center" verticalAlign="middle"> 
       <local:modloader url="Mod2.swf" id="mod3" /> 
      </mx:HBox> 
     </mx:ViewStack> 

    </s:Application> 



    I also tried putting the following lines in initialize function of Application container but in vain: 
      systemManager.stage.scaleMode=StageScaleMode.SHOW_ALL (or TO_FIT); 
      systemManager.stage.align = StageAlign.TOP; 
In fact when using SHOW.ALL..the whole application is as if squeeed to some 50% which makes everything small and this is not nice to view. 

    I also modified the index.template.html and have put the width and height to 100% instead to explicit values. 

    BUT my application only shows around 70%..the rest(at the bottom) go beyond the screen. (Just note that my screen resolution is 1366 x 768)* 

Any bright idea why this does not work?? 
+0

有一次,我有這個問題。它是由於Firefox上的Flash調整大小插件。也許,如果你有這樣的事情,禁用它。 – vettipayyan

+0

@vettipayyan我正在使用Internet Explorer ..對IE還有這樣的事情嗎? – FlexyBoz

回答

0

嘗試將應用程序的minHeight屬性設置爲100,並查看它是否有幫助。

相關問題