2013-05-31 25 views
0

我遇到了滾動我在Flex/Flash Builder中創建的View的內容的問題。當內容擴展屏幕時,我無法滾動以查看其餘內容。如何在Flex/Flash Builder中滾動視圖?

什麼問題,我該如何解決這個問題?

我認爲clipAndEnableScrolling =「true」會解決它,但它沒有。

我對與內容視圖代碼:

<?xml version="1.0" encoding="utf-8"?> 
<s:View xmlns:fx="http://ns.adobe.com/mxml/2009" 
     xmlns:s="library://ns.adobe.com/flex/spark" title="Information"> 



    <fx:Declarations> 
     <!-- Place non-visual elements (e.g., services, value objects) here --> 


    </fx:Declarations> 

    <fx:Style source="style.css"> 
    </fx:Style> 

    <fx:Script> 
     <![CDATA[ 

      protected function button2_clickHandler(event:MouseEvent):void 
      { 
       // TODO Auto-generated method stub 
       if (tabBarVisible){ 
        tabBarVisible = false; 

       } else { 
        tabBarVisible = true; 
       } 
      } 



     ]]> 
    </fx:Script> 

    <fx:Declarations> 
     <!-- Place non-visual elements (e.g., services, value objects) here --> 
    </fx:Declarations> 







    <s:actionContent> 
     <s:Button label="Meny" click="button2_clickHandler(event)"/> 
    </s:actionContent> 

    <s:VGroup clipAndEnableScrolling="true" width="90%" height="90%" horizontalCenter="0" verticalCenter="0"> 

     <s:Button id="braAttVeta" width="100%" label="Bra att veta" styleName="knapp"/> 
     <s:Button id="karen" width="100%" label="Kåren" styleName="knapp"/> 
     <s:Button id="utskott" width="100%" label="Utskott" styleName="knapp"/> 
     <s:Button id="kontakt" width="100%" label="Kontakt" styleName="knapp"/> 
     <s:Button id="ordlista" width="100%" label="Ordlista" styleName="knapp"/> 
     <s:Button id="overallskultur" width="100%" label="Overallskultur" styleName="knapp"/> 
     <s:Button id="sponsorer" width="100%" label="Sponsorer" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 
     <s:Button width="100%" label="Button" styleName="knapp"/> 

    </s:VGroup> 


</s:View> 

回答

相關問題