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], "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
>