Copy link to clipboard
Copied
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
you'll have to create that yourself. you can use a mousedown event and getcharindexatpoint(mouseX,mouseY).
Copy link to clipboard
Copied
you'll have to create that yourself. you can use a mousedown event and getcharindexatpoint(mouseX,mouseY).
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
you're welcome.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now