Uh oh.  That question makes me suspect you have not learned a key
concept in working with flex data driven controls.

 

There is almost no case where accessing such a thing as "the index
number of an itemRenderer" makes any sense.

 

This is because the renderer instances are windows to your data and are
re-used when the data is scrolled or modified.  If you have 10 items in
a list, and your list only displays 5 rows, you only have 5 item
renderers, not 10.  So there is no relation to the "index" of a renderer
and its contents.

 

The tree is in your yard, not in your livingroom window.

 

You must work with the dataprovider.

 

What are you trying to accomplish, maybe we can help.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of evert_dennis
Sent: Wednesday, January 31, 2007 11:58 AM
To: [email protected]
Subject: [flexcoders] Index of an itemRenderer

 

Is there a way to get the index number of an itemRenderer in a
HorizontalList component onRollOver? 

 

Reply via email to