Is this Flex 2?  It may be that the selectedItem and selectedIndex aren’t in sync if you had just set it.  You may need to call validateNow() after setting the selectedItem in order for selectedIndex to be correct for the hPosition.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of Graham, Jason
Sent: Monday, February 27, 2006 12:16 PM
To: [email protected]
Subject: [flexcoders] HorizontalList scroll question

 

I have a horizontal list that is scrolling, is there a way to programmatically select an item and have it scroll to that selected item?  

 

I tried doing something like this.

 

myHorizontalList.hPosition = mySelectedItemsIndex;

 

That doesn’t seem to do anything and if I just set the selectedItem it’s selected just not scrolled to.

 

Thanks

 

 




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to