xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"
width="450">
import mx.collections.*;
import mx.controls.Image;
private var catalog:ArrayList;
private static var cat:Array = [
"a.gif", "a.gif","a.gif", "a.gif"
];
/* Initialize the HorizontalList control by setting its dataProvider
property to an ArrayList containing the items parameter. */
private function initCatalog(items:Array):void {
catalog = new ArrayList(items);
myList.dataProvider = catalog;
}
rowHeight="100" columnCount="4" itemRenderer="mx.controls.Image"
creationComplete="initCatalog(cat);" />