Skip to main content
June 23, 2010
Answered

LinkElements are not clickable

  • June 23, 2010
  • 1 reply
  • 706 views

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.

This topic has been closed for replies.
Correct answer Keyston

I had this same problem, adding mouseChildren = true fixed the problem, allowing links to be clickable on a TextArea/RichEditableText instance

1 reply

KeystonCorrect answer
Participant
June 29, 2010

I had this same problem, adding mouseChildren = true fixed the problem, allowing links to be clickable on a TextArea/RichEditableText instance

June 29, 2010

It worked !

Thanks !