Search Flex Samples

Bug: Problems with Accordion and the ’show’ event

This bug (SDK-11344) was brought up internally and investigated by my co-worker Kishan Venkataramana. The views in an Accordion don’t trigger the “show” event the first time they load. The workaround is to set creationPolicy=”all” on the Accordion. Now the “show” event will trigger the first time you load an Accordion view for all views except the first one. If you need some functionality triggered when the Accordion first loads with its first view, I would just call a function on the creationComplete handler as well as the show event. Here is a simple example:


Related Flex Samples

Learn Flex: Flex Samples | Flex Video Tutorials Flex Examples