Set width for spacer : Spacer « Components « Flex






Set width for spacer

Set width for spacer
          
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:HBox>
        <mx:Button label="First"/>
        <mx:Spacer width="40"/>
        <mx:Button label="Second"/>
        <mx:Button label="Third"/>
    </mx:HBox>
</mx:Application>

   
    
    
    
    
    
    
    
    
    
  








Related examples in the same category

1.Use Spacer to push Button control to the rightUse Spacer to push Button control to the right
2.Use a percentage-based Spacer control to push the Button control to the rightUse a percentage-based Spacer control to push the Button control to the right