2010-04-11 72 views
0

我怎樣才能刪除我的視頻和控制欄之間的空間...我試圖改變邊緣和填充所有元素沒有成功。控件上方仍有一個很薄的空白區域。FLEX:我怎樣才能刪除這個空間?

http://dl.dropbox.com/u/72686/hSliderMargin.png

感謝

<mx:VideoDisplay id="videoD" autoPlay="{autoPlayOption}" source="{videoPath}" playheadUpdate="playUpdate()" click="togglePlay()" /> 

    <mx:HBox width="{videoD.width}" styleName="controlsBar" paddingBottom="0" paddingLeft="0" paddingRight="0" paddingTop="0"> 

     <mx:Button id="playB" icon="{playImg}" width="8" height="14" click="togglePlay()"/> 

     <mx:HSlider id="slider" minimum="0" maximum="{videoD.totalTime}" 
       height="12" 
       width="{videoD.width - 58} " 
       dataTipPlacement="top" 
       allowTrackClick="true" 
       liveDragging="false" 
       showTrackHighlight="true" 
       click="isDragging=true;" 
       mouseUp="seek()" 
       sliderThumbClass="BigThumbClass" 
     /> 

     <mx:Button id="fullB" icon="{fullscreen}" width="10" height="17" click="fullScreen()"/> 

     <mx:Button id="volumeB" icon="{volumeOn}" width="14" height="14" click="toggleVolume()"/> 

    </mx:HBox> 




/* CSS file */ 

global { 
    backgroundColor: #FFFFFF; 
    padding:0; 
    margin:0; 
} 

Button { 

    fillAlphas: 1.0, 1.0, 1.0, 1.0; 
    fillColors: #FFFFFF, #FFFFFF; 
    themeColor: #FFFFFF; 
    borderColor: #FFFFFF; 
    cornerRadius: 0; 
    paddingTop: 0; 
    paddingLeft: 0; 
    paddingRight: 0; 
    paddingBottom: 0; 
    horizontalGap: 0; 
    leading: 0; 
    fontWeight: normal; 
    color: #000000; 
    textSelectedColor: #000000; 
    textRollOverColor: #000000; 
    skin: ClassReference(null); 
} 

Application { 

    backgroundColor: #FFFFFF; 
    backgroundGradientAlphas: 1.0, 1.0; 
    backgroundGradientColors: #FFFFFF, #FFFFFF; 

} 

HSlider { 


    fillAlphas: 1.0, 1.0; 
    fillColors: #C1C1C1, #C1C1C1, #717070, #717070; 
    themeColor: #3C3C3C; 
    thumbSkin: Embed(source="asset/thumb.png"); 
    thumbOffset: -1; 



} 
+1

發佈您的代碼會很有幫助 – grapefrukt 2010-04-11 14:32:29

+0

好的,完成,謝謝。 – aneuryzm 2010-04-12 08:27:29

回答

1

都是這一套在VBox中?加入 垂直間隙:2;

爲VBox風格可能會解決這個問題。另外如果你使用絕對高度,將clipContent = false添加到包含滑塊的框中也可能有幫助。

+0

我已經在VBox中添加了這些項目,並且我用垂直間隙解決了這個問題。謝謝 – aneuryzm 2010-04-13 08:39:50