2009-12-05 56 views
0

我用FLEX4列表:如何獲得視元素索引

<component:SmoothScrollingList x="200" 
      y="180" 
      dataProvider="{myProvider}" 
      itemRenderer="myitemdrender.FriendPageItemRender" 
      id="friendPageList" 
      mouseDown="friendPageList_mouseDownHandler(event)"> 
    <component:layout> 
     <s:HorizontalLayout requestedColumnCount="6"/> 
    </component:layout> 
</component:SmoothScrollingList> 

你可以看到,有6元可以在視窗中看到。

所以我怎麼知道當前的視口元素索引?

例如:

currentViewPortIndex是:[7][8][9][10][11][12]

據我知道,我只知道,我已經通過功能選擇指數

list.selectedIndex

並FLEX4 proivde一些其他功能,我可以使用?

謝謝。

回答