instead of click, do itemClick = playLists_Click
----- Original Message ---- From: flexawesome <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, January 16, 2008 9:39:18 PM Subject: [flexcoders] click event doesn't work in TileList Component 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"> <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. PlayListsRendere r" click="playLists_ Click(event) ;"/> </mx:Application> ========== ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

