<?xml version="1.0" encoding="utf-8"?>
<!-- http://blog.flexexamples.com/2008/08/10/alternating-tile-background-colors-for-items-in-a-tilelist-control-in-flex/ -->
<mx:Application name="TileList_alternatingItemColors_test"
        xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"
        initialize="init();">

    <mx:Script>
        <![CDATA[
            import mx.collections.ArrayCollection;
            import mx.controls.TileList;

            private var arrColl:ArrayCollection;
            private var tileList:TileList;

            private function init():void {
                var arrColl:ArrayCollection = new ArrayCollection();
                arrColl.addItem({label:"One"});
                arrColl.addItem({label:"Two"});
                arrColl.addItem({label:"Three"});
                arrColl.addItem({label:"Four"});
                arrColl.addItem({label:"Five"});
                arrColl.addItem({label:"Six"});
                arrColl.addItem({label:"Seven"});
                arrColl.addItem({label:"Eight"});
                arrColl.addItem({label:"Nine"});
                arrColl.addItem({label:"Ten"});
                arrColl.addItem({label:"Eleven"});
                arrColl.addItem({label:"Twelve"});

                var colorArr:Array = [0xFFFFFF, 0xCCCCCC, 0x999999];

                tileList = new TileList();
                tileList.dataProvider = arrColl;
                tileList.columnCount = 4;
                tileList.columnWidth = 120;
                tileList.rowCount = 3;
                tileList.rowHeight = 80;
                tileList.setStyle("alternatingItemColors", colorArr);
                addChild(tileList);
            }
        ]]>
    </mx:Script>

</mx:Application>