DataGroup with Data provider
<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 test</mx:String> <s:DataGroup id="group" width="1000" height="100" clipAndEnableScrolling="true" itemRenderer="spark.skins.spark.DefaultItemRenderer"> <s:dataProvider> <mx:ArrayCollection source="{txt.split(' ')}" /> </s:dataProvider> </s:DataGroup> <s:VScrollBar viewport="{group}" height="100" /> </mx:Application>