Enable Scrolling in a Container : Container « Container « Flex
- Flex
- Container
- Container
Enable Scrolling in a Container

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:s="library://ns.adobe.com/flex/spark">
<mx:String id="txt">this is a text</mx:String>
<s:Scroller>
<s:DataGroup width="100" height="100"
clipAndEnableScrolling="true"
itemRenderer="spark.skins.spark.DefaultItemRenderer">
<s:dataProvider>
<mx:ArrayCollection source="{txt.split(' ')}" />
</s:dataProvider>
</s:DataGroup>
</s:Scroller>
</mx:Application>
Related examples in the same category