;

PDA

Click to See Complete Forum and Search --> : v7-AS3 SimpleTable in Accordian?


blanius
06-28-2009, 11:41 PM
if I create a simple table

var table:SimpleTable = new SimpleTable();
table.setSize(330, 180,33,180);
table.update();

how do I add it to my accordion that I'm creating?
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);

blanius
06-28-2009, 11:52 PM
Ah, it works like this... My table was just not working as it was.

I guess the real question ends up being I want to create a table the is in thirds and in each third I want an Image and some text, so do I somehow create a movieclip for each cell or what?

w.brants
06-29-2009, 07:02 AM
I want to create a table the is in thirds and in each third I want an Image and some text, so do I somehow create a movieclip for each cell or what?
It would help if you would be a bit more specific about what you want. Where will the text be placed, are the images loaded or are they embedded as classes etc.