Hi,

Is there any way to get a simple table functioning in the current version
of Flex and TLF 3.0?

I know its not officially support until TLF 4.0, but there also seems to be
a lot of work already done too support it and I only need basic table
functionality. I've tried looking through the classes and deciphering it
all myself but I can't even get a single row to render.

var tf:TextFlow = new TextFlow;
var table:TableElement = new TableElement;
table.tableWidth = 800;
var body:TableBodyElement = new TableBodyElement;
var row:TableRowElement = new TableRowElement;
var cell:TableDataCellElement = new TableDataCellElement;
cell.width = 500;
var p:ParagraphElement = new ParagraphElement;
var span:SpanElement = new SpanElement;
span.text = "Table cell row ";
p.addChild(span);
cell.addChild(p);
body.addChild(row);
row.addChild(cell);
table.addChild(row);
tf.addChild(table);
richText.textFlow = tf;

Any help would be much appreciated!

Thanks

Reply via email to