LinkElements are not clickable
Hello,
I am adding LinkElement to my TextFlow and it seems they are not clickable until I do a special trick.
Here is my code :
(OnClick of a button)
var t:TextFlow = txtText.textFlow;
var p:ParagraphElement = new ParagraphElement();
var s:SpanElement = new SpanElement();
var a:LinkElement = new LinkElement();a.href = "http://www.adobe.com";
s.text = "Un lien";a.addChild(s);
p.addChild(a);
t.addChild(p);txtText.textFlow = t;
this is my RichEditableText :
<s:RichEditableText id="txtText" editable="false" />
The link appears with correct format, but when I mouse hover, the cursor is the selectable one, not the hand. I am able to make it "handed" when I select some text, then I press the right-button and then I click on COPY and the link is now clickable (I really don't understand what the hell is going on behind. I tried to attach some listeners and the FlowOperationEvent.FLOW_OPERATION_* are dispatched when I do that.)
Did I forget something to do ?
Sorry for my english,
Charles.
