Skip to main content
Jun 23, 2010 2:12 PM UTC
Answered

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.

This topic is closed to new replies. Start a new post to keep the conversation going.
KeystonCorrect answer
Participant
Jun 29, 2010 3:26 AM UTC

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

2 replies

KeystonCorrect answer
Participant
Jun 29, 2010 3:26 AM UTC

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

Translate
Jun 29, 2010 3:46 PM UTC

It worked !

Thanks !

Translate