0 Replies Latest reply on Mar 12, 2007 9:43 AM by

    accordion inside a scrollPane

      I need to put an accordion in a scrollPane. The only way I can figure out how to do it is to have an empty movieclip in the library, then set that as the contentPath of my scrollPane and creating an accordion inside.

      The problem is that if my accordion has 2 or more children or segments, there is a giant space after the accordion in the scrollPane that I can't get rid of.

      Here is my code:

      import mx.containers.Accordion;

      thisScroll.contentPath = "emptyMC";
      scrollContent = thisScroll.content;

      scrollContent.createClassObject(mx.containers.Accordion, "my_acc", scrollContent.getNextHighestDepth());
      thisAccordion = scrollContent.my_acc;

      thisAccordion.createChild("", "panel1", "first panel");
      thisAccordion.createChild("", "panel2", "second panel");

      Can any body help?