Not really sure what you mean, you could do this:
<mx:Canvas verticalScrollPolicy="auto" horizontalScrollPolicy="off" >
If your content is bigger than the canvas itself it should create a vertical scrollbar, and the horizontal scroll bar will not become visible and will clip your content to the right.
I'm not really sure what your use case is, but you can simulate something like this with two Groups, setting clipAndEnableScrolling to true on the outer Group with a larger height than the inner Group:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"> <!-- Notice that the Button (the large object) looks like it is horizontally clipped at the width of its parent container (100px). Vertically the Button does not appear to be clipped since it is showing more than 100 pixels high. --> <s:Group id="outerGroup" width="100" height="100%" clipAndEnableScrolling="true"> <s:Group id="innerGroup" width="100" height="100"> <s:Rect width="100%" height="100%"> <s:fill> <s:SolidColor color="red" /> </s:fill> </s:Rect> <s:Button label="large object" width="200" height="200" /> </s:Group> </s:Group> </s:Application>
Thanks that what I needed