Hi
I am trying to dynamical add spanElement to the last paragraph of a text flow, I just can not see how this works i know this is work but..
ta is the textArea that the text flow is to be added too.
var paragraph1:ParagraphElement = new ParagraphElement();
var span1:SpanElement = new SpanElement();
var linkWrapper:LinkElement = new LinkElement();
var leaf:SpanElement = new SpanElement(); // caculate the last paragrah in the text flow
leaf = SpanElement(ta.textFlow.get.getLastLeaf()); // i was hopping this would get a link tit he textArea
var p:ParagraphElement = leaf.getParagraph();
span1.text = "some text";
linkWrapper.addChild(span1)
p.addChild(linkWrapper);
________________________________
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.
I am trying to dynamical add spanElement to the last paragraph of a text flow, I just can not see how this works i know this is work but..
ta is the textArea that the text flow is to be added too.
var paragraph1:ParagraphElement = new ParagraphElement();
var span1:SpanElement = new SpanElement();
var linkWrapper:LinkElement = new LinkElement();
var leaf:SpanElement = new SpanElement(); // caculate the last paragrah in the text flow
leaf = SpanElement(ta.textFlow.get.getLastLeaf()); // i was hopping this would get a link tit he textArea
var p:ParagraphElement = leaf.getParagraph();
span1.text = "some text";
linkWrapper.addChild(span1)
p.addChild(linkWrapper);
________________________________
Disclaimer: This electronic mail and any attachments are confidential and may be privileged. If you are not the intended recipient, please notify the sender immediately by replying to this email, and destroy all copies of this email and any attachments. Thank you.