I made a mx:Accordion control. The code for this control is
listed below. I added show events for Canvas control inside
Accordion control. However, it seems that on the first time I
clicked on those Canvas items, show events haven't been called.
It's called on the next clicks. Please tell me how to fix it. Thank
You might have to handle the creationComplete event also,
cause Accordion will not create all the children of its children.
They are created only when they are activated (clicked) and so the
show event is not raised for the first time as the component is
getting created at that but not being "shown". So, you can either
handle creationComplete event for the Canvas or set the
creationPolicy="all" for the Accordion. Please check out the sample