Ok, subclass yes.  Or, you could watch for the change of the selectedIndex with the Observe tag.  Alex Uhlmann has a good article here:

http://weblogs.macromedia.com/auhlmann/archives/2006/09/using_binding_s.cfm#more 

-TH

--- In [email protected], Daniel Wabyick <[EMAIL PROTECTED]> wrote:
>
>
> Ah, that was a good idea, but it doesn't work in my case.
>
> The list is being filtered and the selectedItem is being set via other
> code. Thus the need to bind to selectedItem, as the "change" handler
> won't be called.
>
> I should be able to whip something up fairly easily via a subclass ...
>
> -D
>
>
>
>
> Tim Hoff wrote:
> >
> > Hi Daniel,
> >
> > On a click or change event you could use this:
> >
> > myList.scrollToIndex(myList.selectedIndex);
> >
> > -TH
> >
> > --- In [email protected]
> > <mailto:flexcoders%40yahoogroups.com>, Daniel Wabyick daniel@ wrote:
> > >
> > >
> > > I would like to configure a List class so that it will automatically
> > > scroll to show the selected item whenever the selected index/item
> > > changes. I can't see anyway to bind that using the standard List
> > class,
> > > and it seems like I will have to subclass it in order to work. Am I
> > > missing an easier solution?
> > >
> > > Thanks,
> > > -D
> > >
> >
> >
>

__._,_.___

--
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
Software development tool Software development Software development services
Home design software Software development company

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to