hey there,

I was using TileList to build my simply application. It's weird, seems
doesn't work in itemrenderer.  I would like to get the index number once
user clicks my tilelist components.

Any suggestions? Thanks

==========

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> ">

    <mx:Script>
         <![CDATA[

    import mx.controls.*;

    private function playLists_Click(event:MouseEvent):void{
     var curIndex:String = event.currentTarget.selectedIndex;
     Alert.show(curIndex);

    }

         ]]>
     </mx:Script>

   <mx:TileList id="aa" width="100%" height="120"
    dataProvider="{myData}"
    itemRenderer="Components.PlayListsRenderer"
    click="playLists_Click(event);"/>

</mx:Application>




==========



Reply via email to