if I create a simple table
how do I add it to my accordion that I'm creating?Code:var table:SimpleTable = new SimpleTable(); table.setSize(330, 180,33,180); table.update();
Code:var acc:Accordion = new Accordion(); acc.panelPlacement = Accordion.TOP; acc.operationMode = Accordion.MODE_ALWAYS_ONE; acc.sizeToContent = false; acc.setSize(350,200); var p1:AccordionPanel = acc.addPanel(new AccordionPanel(), 'Lable1',mc1); var p2:AccordionPanel = acc.addPanel(new AccordionPanel(), 'myTable',table); addChild(acc);




Reply With Quote