2 Replies Latest reply on Jul 15, 2008 2:05 AM by nmduc073

    Problem with mx:Accordion

    nmduc073 Level 1
      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 in advance.
        • 1. Re: Problem with mx:Accordion
          SujitG Level 2

          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 attached.

          Hope this helps.
          • 2. Re: Problem with mx:Accordion
            nmduc073 Level 1
            Thank you for your help.
            I found the solution. Using change event in Accordion is useful in my case.