Associating a DataGroup container's dataProvider with an array of strings.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
import mx.collections.ArrayCollection;
[Bindable]
public var someData:ArrayCollection = new ArrayCollection(["one","two","three"]);
</mx:Script>
<s:DataGroup dataProvider="{someData}">
<s:layout>
<s:HorizontalLayout/>
</s:layout>
</s:DataGroup>
</mx:Application>
Related examples in the same category