Announcement

Collapse
No announcement yet.

List item index

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • replied
    I have tried it and it seems to work.

    Thank you very much, Matt!

    SOLVED!

    Leave a comment:


  • replied
    In AS3:

    Code:
    scrollingList.addEventListener( ListEvent.ITEM_CLICK, onItemClicked);
    
    function onItemClicked(e:ListEvent):void {
    	trace( e.index );
    }

    Leave a comment:


  • replied
    That is for UnrealScript and I need to get the index in AS3. Anyway, the selectedIndex property returns the index of the current selected item and not the index of the clicked item.

    Leave a comment:


  • replied
    Code:
    YourList.GetInt("selectedIndex")

    Leave a comment:


  • started a topic List item index

    List item index

    SOLVED

    Hi!

    I have a new question for you. How could I get the index of an item which belongs to a scrolling list through the ITEM_CLICK event?

    Thank you in advance!

    Regards!
Working...
X