Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

tlfText hyperlinks - on Mouse Down instead of Click!?

Contributor ,
May 30, 2014 May 30, 2014

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

TOPICS
ActionScript
303
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , May 30, 2014 May 30, 2014

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

Translate
Community Expert ,
May 30, 2014 May 30, 2014

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
May 30, 2014 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
May 30, 2014 May 30, 2014
LATEST

you're welcome.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines