The docs show itemClick is an event for tileList.
And since the handler was getting fired, you do not need to declare any additional listeners. (setStyle() is for styles, not listeners) You must be declaring a handler in the TileList tag, right? Post that code. Tracy ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of Jayson Sent: Friday, September 07, 2007 1:39 PM To: [email protected] Subject: [flexcoders] Re: TileList controls in AS I also tried this.. import mx.events.ItemClickEvent; myTileList.addEventListener(ItemClickEvent.ITEM_CLICK, doItemClick()); public function doItemClick(event:ItemClickEvent):void{ Alert.show(event.index.toString()); } I even tried Alert.show(event.toString()); I thought for sure that would work, but nothing at all... --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "Jayson" <[EMAIL PROTECTED]> wrote: > > Maybe I'm just blind, but I cant seem to find an itemClick property for > a TileList in AS. > > myTileList.itemClick doesnt appear to be there.. so.. I tried this.. > > myTileList.setStyle ("itemClick", doItemClick()); > > public function doItemClick():void{ > Alert.show(myTileList.selectedIndex.toString()); > } > > Something is triggering this.. upon creation of the TL I get the alert > with -1, obviously meaning nothing is selected, but then nothing > happens when I click on an item. I've been searching for a while and > haven't made any progress at all.. anyone know whats going on? > > Thanks, > > Jayson >

