Skip to main content
Pouradam
Inspiring
May 30, 2014
Answered

tlfText hyperlinks - on Mouse Down instead of Click!?

  • May 30, 2014
  • 1 reply
  • 338 views

Hi there!


by default, any Hyperlinks inside a "tlfTexts" execute on mouse "CLICK" event (not MOUSE_DOWN).


The problem is, if the tlfText is scrolling, it is difficult for a "Click" event to dispatch!


So is there any way to override this default behavior to execute Hyperlinks on "MOUSE_DOWN"?


Thanks a lot,

     Ali

This topic has been closed for replies.
Correct answer kglad

you'll have to create that yourself.  you can use a mousedown event and getcharindexatpoint(mouseX,mouseY).

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
May 30, 2014

you'll have to create that yourself.  you can use a mousedown event and getcharindexatpoint(mouseX,mouseY).

Pouradam
PouradamAuthor
Inspiring
May 30, 2014

Thanks for the reply. Yes you are right! I also used another method, a layer above TLFText containing some transparent Buttons with those links activated on Mouse-Down.

Cheers

kglad
Community Expert
Community Expert
May 30, 2014

you're welcome.