On Apr 6, 2005 10:28 PM, Andrea Veggiani <[EMAIL PROTECTED]> wrote:
> <mx:Accordion styleName="testo" id="idMainAccordion" width="100%" > height="100%" change="verificaAccordion()"> > <destinazione id="idDestinazione" root="{this}" > listaDestinazioni="{listaDestinazioni}" /> > <listaservizi id="idListaservizi" root="{this}" Mesi="{Mesi}" > Giorni="{Giorni}" /> > <nomipax id="idNomipax" root="{this}" Mesi="{Mesi}" > Giorni="{Giorni}" /> > <intestazione id="idIntestazione" root="{this}" /> > </mx:Accordion> > > my function: > > function verificaAccordion() > { > > if (!idDestinazione.step()) > { > idMainAccordion.selectedIndex=0; > } > > } So in the change event handler you're resetting the selectedIndex to 0. That might cause problems for the tweening (the transition). You could instead wait for the tween to complete and then reset it. The amount of time it should take for the tween is accordion.getStyle("openDuration") or thereabouts. Manish Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/